Skip to content

textmode.js / Textmodifier / beginShape

Method: beginShape()

ts
beginShape(mode?): void;

Start recording vertices for a custom 2D or 3D shape. Call vertex one or more times, then call endShape to draw the recorded shape.

Parameters

ParameterTypeDescription
mode?ShapeAssemblyModeShape assembly mode. Defaults to ShapeAssemblyMode.LINE_STRIP.

Returns

void

Example