Skip to content

textmode.synth.js / SynthSource / shape

Method: shape()

ts
shape(
   sides?, 
   radius?, 
   smoothing?): this;

Generate geometric shapes (polygons).

Parameters

ParameterTypeDescription
sides?SynthParameterValueNumber of sides (default: 3)
radius?SynthParameterValueRadius of the shape (default: 0.3)
smoothing?SynthParameterValueEdge smoothing amount (default: 0.01)

Returns

this

Example