shape()

Shape / Loading & Displaying

Description

Draws a shape to the display window.

Syntax

void shape(const PShape& s, float x, float y) void shape(const PShape& s, float x, float y, float w, float h)

Parameters

NameTypeDescription
sPShapethe shape to draw
xfloatx-coordinate
yfloaty-coordinate
wfloatwidth (optional)
hfloatheight (optional)

Returns

void

Related

Under the Hood

Implementation in Processing.h / Processing.cpp:

Loading...