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

2012/5/18

Need A Hint: How to use a loop and array in...

Loopy Loopy

2012/5/18

#
I have not yet caught on to how to do loops and arrays. I need to make an image of a test pattern. I have figured out the colors and sizes of the bars but not how to actually make the bars. How do I start?
Loopy Loopy

2012/5/18

#
I have now figured out how to do the multiple number of bars (loop) but how do I make such a large size object?
davmac davmac

2012/5/18

#
I don't understand what you mean. You can create an image using 'new GreenfootImage(xsize, ysize)', specifying whatever you want for xsize and ysize, and you can set that image as the actor image using setImage(...).
Loopy Loopy

2012/5/18

#
I think I understand that. Thank you.
You need to login to post a reply.