centreShadowText: Draw centred text with a drop shadow
-
centreShadowText() by @Dave
Share Code: 5WG63MNDHQ////////////////////////////////////////////////////////// // centreShadowText() // ---------------------------------------------- // A function to draw text in the centre of the x-axis // at any y-axis position with an adjustable drop shadow // // ~Dave function centreShadowText( yPos, size, offset, textCol, shadowCol, text ) textSize( size ) float tw = textWidth( text ) float x = gwidth() / 2 - tw / 2 float y = yPos - size / 2 drawText( x - offset, y + offset, size, shadowCol, text ) drawText( x, y, size, textCol, text ) return void // example usage centreShadowText( gheight()/2, 196, 5, white, grey, "Hello World" ) update() sleep(3)
-
It says "Project not found" when trying to download this.
-
If you can't find the program this same function is used in 3d Crazy Shooter as well as some of the other demo programs. You might be able to find it there.
-
@Ben-2-0
No, here too i seen't it