Draft Shader
The draft shading stage: each key frame, sampled onto the canvas at FACTOR times its size and shaded by RampShader, as palette labels. The draft is drawn large and reduced afterwards, so the reduction can vote on what every final pixel shows.
Cached under the frames, zone maps, boxes, shading, the key frames and each zone's colours, so moving a marker or editing ramps.json shades again without refitting or relabelling anything.
Types
Link copied to clipboard
class Inputs(val frames: StageOutput<List<Raster>>, val zones: StageOutput<List<IndexedRaster>>, val boxes: StageOutput<FrameBoxes>, val shading: StageOutput<ClipShading>)
The inputs a draft is shaded from: all of one clip's.
Functions
Link copied to clipboard
fun shade(inputs: DraftShader.Inputs, keyFrames: KeyFrames, colours: DraftColours): StageOutput<List<IndexedRaster>>