初代测试版本
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user