初代测试版本

This commit is contained in:
2023-10-12 17:09:05 +08:00
parent 268ffecff7
commit 76315492ad
14 changed files with 267 additions and 198 deletions

View File

@@ -72,6 +72,9 @@ function rgbToHsv([R, G, B]) {
H = (R - G) / delta + 4;
}
H = Math.round(H * 60); // 范围为 0-360
if(H<0){
H = 360+H
}
if (max === 0) {
S = 0;
} else {