textmode.synth.js / ModulatedArray / offset
Method: offset()
ts
offset(offset): this;Set time offset for array cycling.
Shifts when the array starts cycling through its values. Useful for creating phase-shifted animations where multiple arrays cycle with the same speed but at different times.
The offset wraps around at 1.0, so offset(0.5) starts halfway through the cycle, and offset(1.5) is equivalent to offset(0.5).
Parameters
| Parameter | Type | Description |
|---|---|---|
offset | number | Time offset 0-1, wraps at 1.0 (default: 0) |
Returns
this
The array for chaining