improve svg and background

This commit is contained in:
liangping
2023-06-09 13:47:25 +08:00
parent 2cbf6a3ac9
commit 013cc64702
3 changed files with 34 additions and 5 deletions
+2 -2
View File
@@ -132,8 +132,8 @@ export function rgbToHsl(color: string) {
// console.log(r,g,b, '88')
const max = Math.max(r, g, b);
const min = Math.min(r, g, b);
let h,
s,
let h = 0,
s = 0,
l = (max + min) / 2;
if (max == min) {