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

2015/1/12

No background-color GreenfootImage

Pharetra Pharetra

2015/1/12

#
Hi, I'm using the following code:
1
setImage(new GreenfootImage("Score : " + score, 24, Color.YELLOW, Color.BLACK));
Now, I'm trying to remove the background color (in this case, Color.BLACK) because it doesn't look appealing with the background. Any idea on how to do that?
xFabi xFabi

2015/1/12

#
1
setImage(new GreenfootImage("Score : " + score, 24, Color.YELLOW, new Color(0,0,0,0)));
danpost danpost

2015/1/12

#
You can also use:
1
setImage(new GreenfootImage("Score : "+score, 24, Color.YELLOW, null));
You need to login to post a reply.