Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Graphics- drawPolygon

 
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!