forked from Hri7566/mpp-server-dev2
add export
This commit is contained in:
parent
9dc6892796
commit
d16afcfc6d
|
@ -72,8 +72,6 @@ function getTimeColor(currentDate = new Date()) {
|
||||||
if (l > 0.5) l = 0.5;
|
if (l > 0.5) l = 0.5;
|
||||||
if (s > 1) s = 1;
|
if (s > 1) s = 1;
|
||||||
|
|
||||||
console.log(h, s, l);
|
|
||||||
|
|
||||||
// convert to rgb
|
// convert to rgb
|
||||||
let [r, g, b] = hslToRgb(h, s, l);
|
let [r, g, b] = hslToRgb(h, s, l);
|
||||||
|
|
||||||
|
@ -84,5 +82,6 @@ function getTimeColor(currentDate = new Date()) {
|
||||||
module.exports = {
|
module.exports = {
|
||||||
hashCode,
|
hashCode,
|
||||||
intToRGB,
|
intToRGB,
|
||||||
getTimeColor
|
getTimeColor,
|
||||||
|
hslToRgb
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue