createShape()

Shape

Description

Creates a new PShape object. Optionally pass a kind constant.

Syntax

PShape createShape() PShape createShape(int kind)

Parameters

NameTypeDescription
kindintshape kind (optional): POINTS, LINES, TRIANGLES, etc.

Returns

PShape

Related

Under the Hood

Implementation in Processing.h / Processing.cpp:

Loading...