Fix a bug in the ColorConverters.CMYK_HTML
method (PR 12631 follow-up)
Because of a small oversight, this method accidentally handled the intermediate array incorrectly.
This commit is contained in:
parent
7a89f4a789
commit
b5cad9be03
@ -70,7 +70,8 @@ class ColorConverters {
|
||||
}
|
||||
|
||||
static CMYK_HTML(components) {
|
||||
return this.RGB_HTML(this.CMYK_RGB(components));
|
||||
const rgb = this.CMYK_RGB(components).slice(1);
|
||||
return this.RGB_HTML(rgb);
|
||||
}
|
||||
|
||||
static RGB_CMYK([r, g, b]) {
|
||||
|
Loading…
Reference in New Issue
Block a user