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

2013/11/27

Creating Images

David.Budnick David.Budnick

2013/11/27

#
I am trying to create a 5 by 5 blue image with the GreenfootImage creator. I can't figure out how to do this.... Can anyone help?
bourne bourne

2013/11/27

#
GreenfootImage image = new GreenfootImage(5, 5); // Create 5 by 5 image that is empty (all transparent)
image.setColor(java.awt.Color.BLUE); // Set drawing color
image.fill(); // Use drawing color over entire image
David.Budnick David.Budnick

2013/11/27

#
Thank you so much you saved my life!!!
You need to login to post a reply.