Hey guys!
I've got a question.
I know, how to fill a rectangle and an oval. But I've got no idea, how to fill a triangle...
Can someone help me, plz?
int[] xs = { 10, 50, 50 }; int[] ys = { 100, 60, 140 }; GreenfootImage img = new GreenfootImage(200, 200); img.fillPolygon(xs, ys, 3);