This commit is contained in:
David Ralph
2021-01-16 22:43:46 +00:00
parent 0a735384df
commit 3ec5a2c199
32 changed files with 530 additions and 182 deletions

View File

@@ -10,8 +10,10 @@ export default function setRGBA(red, green, blue, alpha) {
blue: blue | 0,
};
if (isValidRGBValue(alpha) === true) color.alpha = alpha | 0;
// RGBToHSL(color.r, color.g, color.b);
if (isValidRGBValue(alpha) === true) {
color.alpha = alpha | 0;
}
return color;
}
}