Creates a palette of hue shifted colors from the passed in color.
Hue shifting means that:
The minLightness and maxLightness values determine how dark or light our color will be at either extremum respectively.'
minLightness
maxLightness
The length of the resultant array is the number of samples (num) mult lied by 2 plus the base color passed in or simply (num * 2) + 1.
num
(num * 2) + 1
Optional
The color to use as the base of the palette.
The optional overrides object.
import { hueshift } from "@skchr/color";let hueShiftedPalette = hueShift("#3e0000");console.log(hueShiftedPalette);// [ '#ffffe1', '#ffdca5', '#ca9a70', '#935c40', '#5c2418', '#3e0000', '#310000', '#34000f', '#38001e', '#3b002c', '#3b0c3a'] Copy
import { hueshift } from "@skchr/color";let hueShiftedPalette = hueShift("#3e0000");console.log(hueShiftedPalette);// [ '#ffffe1', '#ffdca5', '#ca9a70', '#935c40', '#5c2418', '#3e0000', '#310000', '#34000f', '#38001e', '#3b002c', '#3b0c3a']
Creates a palette of hue shifted colors from the passed in color.
Hue shifting means that:
The
minLightnessandmaxLightnessvalues determine how dark or light our color will be at either extremum respectively.'The length of the resultant array is the number of samples (
num) mult lied by 2 plus the base color passed in or simply(num * 2) + 1.