p5.js vertex() Function
The vertex() function in p5.js is used to specify the coordinates of the vertices used to draw a shape. It can only be used with the beginShape() and endShape() functions to make various shapes and curves like points, lines, triangles, quads and polygons. Syntax: vertex( x, y ) OR vertex( x, y, z, [