Utilities for animation.
Functions that use sine and params.time to increase and decrease a value over time.

These are wgsl functions, not js functions. The function is enclosed in a js string constant, to be appended into the code to reference it in the string shader.

Source:
core/animation.js, line 1

Members

staticconstantfnusin String

Animates sin() over params.time and a provided speed. The value is normalized, so in the range 0..1

Source:
core/animation.js, line 64
Example
import { fnusin } from 'points/animation';

// wgsl string
${fnusin}
let value = fnusin(2.);
js

staticconstantfucos String

Animates cos() over params.time and a provided speed. The value is not normalized, so in the range -1..1

Source:
core/animation.js, line 45
Example
import { fucos } from 'points/animation';

// wgsl string
${fucos}
let value = fucos(2.);
js

staticconstantfusin String

Animates sin() over params.time and a provided speed. The value is not normalized, so in the range -1..1

Source:
core/animation.js, line 26
Example
import { fusin } from 'points/animation';

// wgsl string
${fusin}
let value = fusin(2.);
js

MIT

Documentation generated by JSDoc 4.0.4 using Docolatte theme on