textmode.js / Textmodifier / translate
Method: translate()
ts
translate(
x?,
y?,
z?): void;Translate subsequent shape drawing.
All geometries are displaced by the specified amounts. Similar to p5.js translate().
Parameters
| Parameter | Type | Description |
|---|---|---|
x? | number | Translation along the X axis in grid cells. Defaults to 0. |
y? | number | Translation along the Y axis in grid cells. Defaults to 0. |
z? | number | Translation along the Z axis in grid cells. Defaults to 0. |
Returns
void