Skip to main content

Function: getBeatDistance()

getBeatDistance(beat_strength): number

Defined in: simulation/simulation.ts:1513

computes the distance the beat will push the yarn based on the strength of the beat.

Parameters

beat_strength

number

the strength of the beat (0-1)

Returns

number

the distance the beat will push the yarn