triadic
Return triadic colors (three hues 120° apart on the OKLCH wheel): [color, hue + 120, hue + 240]. Only the hue changes, and the results are not gamut mapped.
import { triadic } from '@pbroom/color-kit';index.ts:67function triadic(color: Color): Color[];Parameters
Returns
Color[]Three colors
Example
import { parse, triadic } from '@pbroom/color-kit';
triadic(parse('oklch(0.7 0.15 30)')).map((c) => c.h); // → [30, 150, 270]