Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Graphics- drawPolygon  RSS feed

 
Ajit B
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
dear all......
In the method drawPolygon, why we need to pass third argument as number of vertices coz as it is the size of array in first two arguments make it clear how many vertices are there.
public abstract void drawPolygon(int[] xPoints,
int[] yPoints,
int nPoints)
............Ajit
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!