Document ref/color further

This commit is contained in:
Nate Butler
2023-02-11 08:14:13 -05:00
parent dda0febf39
commit 0acb820f04
3 changed files with 10 additions and 0 deletions
+4
View File
@@ -17,11 +17,15 @@ function assignColor(scale: Scale, steps: number, step: number) {
const rgbaArray = color.rgba();
const hex = color.hex();
// Roughly calculate if a color is dark or light
const isLight = lch[0] > 50;
const result = {
step,
hex,
lch,
rgbaArray,
isLight,
};
return result;