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

2016/3/1

How to draw lines as objects?

RedPanda98 RedPanda98

2016/3/1

#
I want to create a gas container (square box) where the gas particles will be simulated in. The container will have 4 sides: top, bottom, left and right. I need help in drawing these lines. I have already tried using other code but with no success and hope to find a simple solution.
Super_Hippo Super_Hippo

2016/3/2

#
Why do you want the lines to be objects? If not, you can draw these lines on the background:
GreenfootImage bg = new GreenfootImage("nameOfTheImage.png"); //or = getBackground();
bg.drawRect(10,10,90,90);
follow for folow
You need to login to post a reply.