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
| Name | Type | Notes |
|---|---|---|
a | PropRef | |
b | PropRef |
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 thespaceprop.stops— The standard multi-stop palette, read from thestops,colorAandcolorBprops.