We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexSuggestions & BugsWebsite,  Documentation,  Book Bugs › begin shape example error
Page Index Toggle Pages: 1
begin shape example error (Read 1355 times)
begin shape example error
Apr 27th, 2008, 4:09am
 
The first example here
http://processing.org/reference/beginShape_.html features a closed shape. To make this shape the code in the example should read...

beginShape();
vertex(30, 20);
vertex(85, 20);
vertex(85, 75);
vertex(30, 75);
endShape(CLOSE);

Or the image should be updated. But it is a good test for the students.

mattD
Re: begin shape example error
Reply #1 - May 28th, 2008, 7:58am
 
Thanks. I updated the code. It will be online with the next update.
Page Index Toggle Pages: 1