Support multiple channels
Closed this issue · 2 comments
tmcw commented
Most 'photo-style' grayscale filters use luminance or another factor rather than a mean of all bands.
Zverik commented
I... don't understand this. I used a line from OpenLayers example, which uses l = 0.325 * r + 0.5 * g + 0.125 * b
formula. Are you suggesting that canvas' pixels aren't always rgba?
Zverik commented
For a future reference, a slashdot article on the subject with different coefficients.