This site requires JavaScript, please enable it in your browser!
Greenfoot back
DerAxeEffekt
DerAxeEffekt wrote ...

2014/1/21

drawString

DerAxeEffekt DerAxeEffekt

2014/1/21

#
I'd like to know how to use the drawString method properly. I tried this: drawString("Hello!", 0, 0,) and this: GreenfootImage.drawString("Hello!", 0, 0,) but they don't work.
davmac davmac

2014/1/21

#
From the documentation:
The baseline of the leftmost character is at position ( x , y )
The problem is that you're drawing the text too high up; it goes off the top of the image.
You need to login to post a reply.