This site requires JavaScript, please enable it in your browser!
Greenfoot
Username
Password
Remember Me?
Sign Up, Lost Password
Activity
About
Documentation
Download
Discuss
Scenarios
Game/maniac
wrote ...
2013/1/11
drawPolygon()
Game/maniac
2013/1/11
#
How do you use drawPolygon(), I tried doing img.drawPolygon(xPoints, yPoints, 5); but that doesn't work, what should I be doing
MatheMagician
2013/1/11
#
I myself have often been annoyed by using drawPolygon(). The only way that I have found to do it is to initialize the arrays first and then call the method.
int[] x = {5, 7, 10, 25, 45}; int[] y = {5,12, 40, 30, 6}; img.drawPolygon(x,y,5);
Game/maniac
2013/1/11
#
thank you, it worked!
You need to login to post a reply.
X