← back to roto on ba3a.dev

RampShader

class RampShader(shading: ClipShading, zoneColours: List<List<Int>>)

Shades a frame: each pixel of a zone takes the ramp step its OKLab lightness falls in under the clip's shading, and so the palette label zoneColours gives that step. Works at whatever size it is given, the frame and its zone map sampled alike.

Constructors

Link copied to clipboard
constructor(shading: ClipShading, zoneColours: List<List<Int>>)

Functions

Link copied to clipboard

frame as palette labels, 0 wherever zones says background.