linearPair

A two-color palette mixed in linear RGB, for a definition with no color-space prop.

linearPair(a: PropRef, b: PropRef): Palette

Import noise from shaders/std and use noise.linearPair.

Reads two color props. Use pair or stops from paint when the definition has a colorSpace prop.

Parameters

NameTypeNotes
aPropRef
bPropRef

Example

paint: rampOver(noiseTone(seededPlane(scratchStreaks({thickness: p('thickness')}), {scale: p('scale'), seed: p('seed')})), linearPair(p('colorA'), p('colorB')))

See also

  • pair — A palette of two color props, mixed in the color space named by the space prop.
  • stops — The standard multi-stop palette, read from the stops, colorA and colorB props.

Used by

Scratches