Language \ Environment \ Comparison
 
Index
 
  The Processing 1.0 _ALPHA_ Reference is a work in progress.
If you see any errors or have any comments, please write to: reas at groupc.net
Name  

vertex()

   
Examples  
beginShape(POINTS); 
vertex(30, 20); 
vertex(85, 20); 
vertex(85, 75); 
vertex(30, 75); 
endShape(); 
Description   All shapes are constructed by connecting a series of vertices. vertex() is used to specify the vertex coordinates for points, lines, triangles, quads, and polygons and is used exclusively within the beginShape() and endShape() function. The vertex() function must be called between beginShape() and endShape().
   
Syntax  
vertex(x, y); 
vertex(x, y, z); 
   
Parameters  
x   int or float: x-coordinate of the vertex

y   int or float: y-coordinate of the vertex

z   int or float: z-coordinate of the vertex

   
Returns   None
   
Usage   Application & Web
   
Related   beginShape()
endShape()
bezierVertex()
curveVertex()
   
© 2004 - 2001 Massachusetts Institute of Technology and Interaction Design Institute Ivrea
Processing is an open project initiated by Ben Fry and Casey Reas