a port of the Processing Visualization Language
Name

endShape()

Examples
example pic
noFill();



beginShape();

vertex(20, 20);

vertex(45, 20);

vertex(45, 80);

endShape(CLOSE);



beginShape();

vertex(50, 20);

vertex(75, 20);

vertex(75, 80);

endShape();
Description The endShape() function is the companion to beginShape() and may only be called after beginShape(). When endshape() is called, all of image data defined since the previous call to beginShape() is written into the image buffer. The constant CLOSE as the value for the MODE parameter to close the shape (to connect the beginning and the end).
Syntax
endShape()

endShape(MODE)
Parameters
MODE Use CLOSE to close the shape
Usage Web & Application
Related beginShape()

This reference is licensed under the CC BY-NC-SA 2.0 license:

Creative Commons License
Fork me on GitHub