RESOLVED INVALID 181641
Drawing semitransparent gradients with canvas and globalAlpha messes colors up
https://bugs.webkit.org/show_bug.cgi?id=181641
Summary Drawing semitransparent gradients with canvas and globalAlpha messes colors up
Cameron Little
Reported 2018-01-14 16:04:27 PST
Created attachment 331315 [details] Output from reproduction Canvas behaves differently when using globalAlpha vs alpha in an rgba color within a gradient. Colors look much muddier. Here's a reproduction: https://codepen.io/apexskier/pen/RxBgKq?editors=0010 This works when filling with a single color (not a gradient).
Attachments
Output from reproduction (107.15 KB, image/png)
2018-01-14 16:04 PST, Cameron Little
no flags
Simon Fraser (smfr)
Comment 1 2018-01-16 11:24:23 PST
Seems to be a bug in the underlying framework we use for GPU-accelerated canvas drawing.
Simon Fraser (smfr)
Comment 2 2018-01-16 11:28:22 PST
Alexey Proskuryakov
Comment 3 2018-01-20 17:33:40 PST
As such, marking INVALID, the issue will continue to be tracked by Apple internally. Thank you for the report!
Note You need to log in before you can comment on or make changes to this bug.