colorAtIndex
One color from a stops prop, by index.
colorAtIndex(colors: v4f[], idx: number): v4f
Import effects from shaders/std and use effects.edgeGlow.colorAtIndex.
Reads the packed stops array (uniforms.colorsArray when the definition uses colorStopsPropConfig). Stop positions are ignored; the stops are a list of orbit colors.
Parameters
| Name | Type | Notes |
|---|---|---|
args | [colors: v4f[], idx: number] |
Example
const color = call(colorAtIndex, 'colorAtIndex', [uniforms.colorsArray, floatE(i)])
See also
edgeGlowAccumColorFor— The fold step for one color space: adds one color's spots to the running state.