translate()
TransformDescription
Specifies an amount to displace objects. Supports 2D and 3D.
Syntax
void translate(float x, float y)
void translate(float x, float y, float z)
Parameters
| Name | Type | Description |
|---|---|---|
| x | float | left/right displacement |
| y | float | up/down displacement |
| z | float | forward/backward displacement (optional, 3D) |
Returns
voidRelated
Under the Hood
Implementation in Processing.h / Processing.cpp:
Loading...