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

2017/12/2

text

doglover555 doglover555

2017/12/2

#
How do I make my text have a transparent background by using the setImage method? Like what would I put in the place of LIGHT_GRAY or do I have to do it in another way?
setImage(new GreenfootImage("A dog with\n " + this.description,20,Color.BLACK,Color.LIGHT_GRAY));
danpost danpost

2017/12/2

#
doglover555 wrote...
what would I put in the place of LIGHT_GRAY
You would replace 'Color.LIGHT_GRAY' with 'new Color(0, 0, 0, 0)'.
You need to login to post a reply.