vertex

fun PShape.vertex(v: Vector2)(source)

Appends a vertex to the current shape using a 2D vector.

Parameters

v

the Vector2 instance containing the x and y coordinates of the vertex to be added. The coordinates are converted to Float for use in the shape.