tritone
Repaint the child in three colors: colorA for the shadows, colorB for the midtones, colorC for the highlights.
tritone(slots: {colorA: PropRef; colorB: PropRef; colorC: PropRef; blendMid: ArgSpec; colorSpace: PropRef}): PointwiseEffect
Import effects from shaders/std and use effects.color.tritone.
blendMid (0–1) is the brightness the midtone color sits at. colorSpace is a select prop with transform: transformColorSpace and compileTime: true; it picks the space the colors mix in. Alpha kept.
Parameters
| Name | Type | Notes |
|---|---|---|
slots | {colorA: PropRef; colorB: PropRef; colorC: PropRef; blendMid: ArgSpec; colorSpace: PropRef} |
Example
effect: tritone({colorA: p('colorA'), colorB: p('colorB'), colorC: p('colorC'), blendMid: p('blendMid'), colorSpace: p('colorSpace')})
See also
duotone— Repaint the child in two colors:colorAfor the shadows,colorBfor the highlights.gradientMap— Recolor the child by its brightness through a gradient, the Photoshop gradient map.