scale()
TransformDescription
Increases or decreases the size of shapes by expanding and contracting vertices.
Syntax
void scale(float s)
void scale(float sx, float sy)
Parameters
| Name | Type | Description |
|---|---|---|
| s | float | percentage to scale uniformly |
| sx | float | x-axis scale factor |
| sy | float | y-axis scale factor |
Returns
voidRelated
Under the Hood
Implementation in Processing.h / Processing.cpp:
Loading...