mirror of
https://github.com/mue/mue.git
synced 2026-07-23 00:37:27 +02:00
cleanup
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
function isValidRGBValue(value) {
|
||||
const isValidRGBValue = (value) => {
|
||||
return (typeof (value) === 'number' && Number.isNaN(value) === false && value >= 0 && value <= 255);
|
||||
}
|
||||
|
||||
@@ -11,9 +11,7 @@ export default function setRGBA(red, green, blue, alpha) {
|
||||
};
|
||||
|
||||
if (isValidRGBValue(alpha) === true) color.alpha = alpha | 0;
|
||||
|
||||
// RGBToHSL(color.r, color.g, color.b);
|
||||
|
||||
return color;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user