![]() |
![]() FAQ |
|
||||||||||||||||
![]() |
|
![]() |
|
![]() |
![]() |
Examples for Processing (BETA) version 91+. If you have a previous version, use the examples included with your software. If you see any errors or have comments, please let us know. |
![]() |
Vertices by REAS <http://reas.com> The beginShape() function begins recording vertices for a shape and endShape() stops recording. A vertex is a location in space specified by X, Y, and sometimes Z coordinates. beginShape() requires a parameter to tell it which type of shape to create from the provided vertices. The choices available are LINES, LINE_STRIP, LINE_LOOP, TRIANGLES, TRIANGLE_STRIP, QUADS, QUAD_STRIP, and POLYGON. After calling the beginShape() function, a series of vertex() functions must follow. To stop drawing the shape, call the endShape() functions. Created 2 September 2002 |
|
![]() |
![]() |
// Vertices // by REAS <http://reas.com> size(200, 200); background(0); stroke(102); beginShape(LINE_STRIP); curveVertex(168, 182); curveVertex(168, 182); curveVertex(136, 38); curveVertex(42, 34); curveVertex(64, 200); curveVertex(64, 200); endShape(); stroke(51); beginShape(LINES); vertex(60, 40); vertex(160, 10); vertex(170, 150); vertex(60, 150); endShape(); stroke(126); beginShape(LINE_STRIP); vertex(60, 40); bezierVertex(160, 10, 170, 150, 60, 150); endShape(); stroke(255); beginShape(POINTS); vertex(60, 40); vertex(160, 10); vertex(170, 150); vertex(60, 150); endShape(); |
|
||
Processing is an open project initiated by Ben Fry and Casey Reas | ||
© Info |