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:
Jonas Jenwald 2022-06-09 10:03:36 +02:00
parent 7a89f4a789
commit b5cad9be03

View File

@ -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]) {