scale()

Transform

Description

Increases or decreases the size of shapes by expanding and contracting vertices.

Syntax

void scale(float s) void scale(float sx, float sy)

Parameters

NameTypeDescription
sfloatpercentage to scale uniformly
sxfloatx-axis scale factor
syfloaty-axis scale factor

Returns

void

Related

Under the Hood

Implementation in Processing.h / Processing.cpp:

Loading...