Hello,
I was digging through my mass junk drawers and found my DarkBASIC Pro Studio case, which I bought and used for like a week.. Now I decided to jump in again. Long story short, I was tinkering with functions that change TEXT and stuff and was trying to make a Shadow effect on text, now the thing is, what do I assign as the RGB color to the variable?
Code:
FUNCTION ShadowText(x as integer , y as integer , txt as string , xoffset as integer , yoffset as integer , txtcol as integer , shadcol as integer )
INK txtcol , shadcol
TEXT x + xoffset, y + yoffset, txt
INK txtcol , shadcol
TEXT x, y, txt
ENDFUNCTION
Thats the function, now when I use it, the only color displayed is the first color (foreground) and the shadow is the same even though I selected a different color. Here's my mini program:
BOX 0, 0, 640, 480, RGB(255,255,255), RGB(255,255,255), RGB(255,255,255), RGB(255,255,255) ` Background
ShadowText(0, 0, "Hello World", 2, 2, RGB(255,0,0), RGB(0,0,0)) ` Shadow Text Function.
WAIT KEY
END
So here I have the text color as RED and the shadow color as BLACK. Yet onscreen the text and shadow is both RED.... What did I mess up on this time lol
Thanks