Skip to content

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

ParameterTypeDescription
x?numberTranslation along the X axis in grid cells. Defaults to 0.
y?numberTranslation along the Y axis in grid cells. Defaults to 0.
z?numberTranslation along the Z axis in grid cells. Defaults to 0.

Returns

void

Example