Open prisonerjohn opened 10 years ago
Comment by REAS Friday Feb 22, 2013 at 22:27 GMT
This is a case where the documentation is ahead of the next software release. We hope to have the next release in the next day or two and then the code in the documentation will work. For now, you can consult the documentation that comes with 2b7 in the Help menu. beginShape() was added after 2b7. The new JavaDoc is here: http://processing.org/reference/javadoc/core/
Comment by tracerstar Friday Feb 22, 2013 at 22:32 GMT
Ah, no problem. Look forward to the updated release.
Issue by tracerstar Friday Feb 22, 2013 at 22:17 GMT Originally opened as https://github.com/processing/processing-web/issues/40
Hi,
Not sure if this issue is covered by the other open PShape issues/enhancements already documented, so you might already be aware of it.
On this tutorial: http://processing.org/reference/PShape_beginContour_.html
It uses the beginShape method on a PShape object, but compiling in the IDE (processing 2.0b7 on Windows Vista) I get the error "The function beginShape() does not exist".
Looking at the javadoc here: http://processing.googlecode.com/svn/trunk/processing/build/javadoc/core/processing/core/PShape.html it appears beginShape isn't a method of PShape, but rather a method of PGraphics, here: http://processing.googlecode.com/svn/trunk/processing/build/javadoc/core/processing/core/PGraphics.html#beginShape()
From my understanding of what's in the IDE's example code of BeginEndContour, the tutorial in the first link above needs to be updated to remove beginShape/endShape, and have end() added after the second endContour() call.
Thanks, Ben.