Hi everyone; I'm new to all of this and was looking for some help. Basically I want to call a method that would allow me to create a rectangle (via fillRect())... Could anyone help me out with this code?
This is what I have but it doesn't seem to work. Thanks in advance.
GreenfootImage image = new GreenfootImage(100, 100);
image.fillRect(100, 100, 100, 100);
image.setColor(java.awt.Color.RED);
setImage(image);