Skip to content

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 ​

ParameterType
stopsreadonly object[]
nnumber

Returns ​

Uint8ClampedArray

HereSplash — 2D animation for the web