Open temuri416 opened 8 years ago
Had the same problem. It is already possible though, with a simple workaround:
let color = $yourInput.spectrum('get');
color.setAlpha(yourAlphaValue);
let rgb = color.toRgbString();
$yourInput.spectrum('set', rgb);
But it would be nice to have an API method, to save some loc ;)
-Trixt0r
Hello,
Would it be possible to create an API method to set alpha channel value?
My use case:
I let (inexperienced) users choose rectangle fill color in RGBA format which defaults to transparent. They may not realize that choosing color is not enough and they should also change alpha channel value.
Thanks!