Hello, I am having problems creating a polygon and an array. So far I have this:
The aim is to create a triangular cursor. Help? Please?
import greenfoot.*; public class Mouse extends Conector { public void act() { } public void addedToWorld(World world) { GreenfootImage image = new GreenfootImage(20, 20); int[] xs = { 0, 5, 10}; int[] ys = { 10, 0, 10 }; image.drawPolygon(xs, ys, 1); } }