Compare commits

...

2 Commits

Author SHA1 Message Date
Jan Scheiper
deb03111b2 Merge branch 'master' of git.literalchaos.de:jan/homecontrol-control-base 2022-05-16 23:10:17 +02:00
Jan Scheiper
431d4f556e added asyncTimeout util 2022-05-16 23:09:31 +02:00

View File

@ -81,10 +81,17 @@ function RGB_to_HSL(rgb) {
};
}
function asyncTimeout(timeout) {
return new Promise(resolve => {
setTimeout(resolve, timeout);
});
}
module.exports = {
fillPartialHSL,
clamp,
HSL_to_RGB,
RGB_to_HSL,
RGB_to_HSL,
hue2rgb,
asyncTimeout,
};