Skip to content

textmode.js / Textmodifier / torus

Method: torus() ​

ts
torus(radius?, tubeRadius?): void;

Draw a torus mesh primitive.

Parameters ​

ParameterTypeDescription
radius?numberRadius from center to tube centerline (defaults to 50).
tubeRadius?numberRadius of the tube (defaults to 10).

Returns ​

void

Example ​