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

From Processing.h:

PShape createShape(int kind=-1);

Under the Hood

From Processing.cpp:

PShape PApplet::createShape(int kind){ return PShape(kind); }