processing/processing-docs

A minor typo on the Regular polygon page

vlahovivan opened this issue · 1 comments

Issue description

The comment in the code below is wrong, Icosahedron is a polyhedron, not a polygon.

pushMatrix();
translate(width*0.5, height*0.5);
rotate(frameCount / 50.0);
polygon(0, 0, 80, 20);  // Icosahedron
popMatrix();

URL(s) of affected page(s)

https://processing.org/examples/regularpolygon.html

Proposed fix

It should say "Icosagon" or "20 sided polygon".

Yep. That's true! Thanks for noticing and reporting.