bebraw / colorjoe

Scaleable color picker with touch and AMD support (MIT)
http://bebraw.github.io/colorjoe/
MIT License
568 stars 68 forks source link

Change CMYKA input not working #52

Closed icpcbot1209 closed 1 year ago

icpcbot1209 commented 4 years ago

I placed the picker and tried to change the cmyka input value manually. But this doesn't work. Everything else is fine, please let me know how to fix it.

const joe = colorjoe.rgb("hslPicker", "red", [ "alpha", "currentColor", ["fields", { space: "RGBA" }], ["fields", { space: "CMYKA", limit: 100, fix: 0 }], "hex", ]).on("change", function (color) { console.log("Selecting " + color.alpha()); }).update(); image

bebraw commented 1 year ago

I think solving #55 handled this one. There was a slight math error.