Anonymous
Guest
I've created a script that (once it works) will put outlines around text, but all that is happening now is that fonts get thicker and letters get darker as they go along. It's hard to describe. I'd post a picture, but I'm on 56K. Would someone please help me with this?
Thank you in advance for taking the time to see this topic!^_^
Code:
class Bitmap
alias old_draw_text draw_text
def draw_text(x, y, w, h, s, a=0)
@colour = font.color
rr = @colour.red - 100
gg = @colour.green - 100
bb = @colour.blue - 100
font.color = Color.new(rr, gg, bb, 255)
old_draw_text(x + 1, y + 1, w, h, s, a)
old_draw_text(x - 1, y - 1, w, h, s, a)
old_draw_text(x - 1, y + 1, w, h, s, a)
old_draw_text(x + 1, y - 1, w, h, s, a)
font.color = @colour
old_draw_text(x + 0, y + 0, w, h, s, a)
end
end
Thank you in advance for taking the time to see this topic!^_^