Skip to content

Documentation / @ripl/core / scaleRGB

Variable: scaleRGB

const scaleRGB: Scale<number, number>

Defined in: packages/core/src/color/scales.ts:36

A continuous scale mapping normalised values (0–1) to the RGB channel range (0–255) with clamping.