A periodic stroke signal that starts and ends at rest: sin(2 pi n u)
under a window easing in over the first and out over the last 15 % of
the stroke, so the hand leaves and rejoins its held goal smoothly.
Parameters
u: number
Stroke share.
cycles: number
Cycles.
Returns number
The signal in [-1, 1]; 0 at and outside the stroke's ends.
A periodic stroke signal that starts and ends at rest:
sin(2 pi n u)under a window easing in over the first and out over the last 15 % of the stroke, so the hand leaves and rejoins its held goal smoothly.