processing / processing-docs

[Deprecated] Processing reference, examples, tutorials, and website
https://processing.org
371 stars 179 forks source link

A minor typo on the Regular polygon page #802

Closed vlahovivan closed 4 years ago

vlahovivan commented 4 years ago

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".

jeremydouglass commented 4 years ago

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