beginShape()
Draws a polygon with any number of given vertices.
Example

beginShape()
vertex(200, 100)
vertex(300, 150)
vertex(300, 250)
vertex(200, 300)
vertex(100, 250)
vertex(100, 150)
vertex(200, 100)
endShape()Syntax
Input
Description

Description







Last updated