beginShape()

Shape / Vertex

Description

Using beginShape() and endShape() allows creating complex forms. Optionally pass a shape kind.

Syntax

void beginShape() void beginShape(int kind)

Parameters

NameTypeDescription
kindintPOINTS, LINES, TRIANGLES, TRIANGLE_FAN, TRIANGLE_STRIP, QUADS, QUAD_STRIP (optional)

Returns

void

Related

Under the Hood

Implementation in Processing.h / Processing.cpp:

Loading...