Appearance
anim-format (runtime format) / linearRgbRamp
Function: linearRgbRamp()
ts
function linearRgbRamp(stops, n): Uint8ClampedArray;THE linearRGB gradient blend (Flash "linearRGB" interpolation, owner 2026-11-08; the editor's renderer and the player both draw their ramp texture from it): n RGBA samples (0..255) along the stops (offsets 0..1 ascending, colours "RRGGBB" / "RRGGBBAA"), the colours blended in linear light and converted back, alpha blended plainly. Before the first stop / after the last one the end colour holds.
Parameters
| Parameter | Type |
|---|---|
stops | readonly object[] |
n | number |
Returns
Uint8ClampedArray