DrawTextShadow()
-
Made a function for text with customizable shadow today. I've shared it, if someone needs it.
Here's the function:
function DrawTextShadow(x, y, fontsize, color, shadowcolor1, shadowcolor2, depth, s) for i = 0 to depth loop clr = lerp(shadowcolor2, shadowcolor1, i / depth) drawText(x + depth - i, y - depth + i, fontsize, clr, s) repeat drawText(x, y, fontsize, color, s) return void
-
I do similarly for my text adventure, but I didn’t create a function for it like you did. I should replace all those double drawtext calls with this.