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);
![Twitter](/assets/twitter-4e19209ef84344ee0c433f4c7bad8d49.png)
![Twitter.hover](/assets/twitter.hover-1fb19a5bafc50deace8f88eaec867845.png)