Closed tmcw closed 8 years ago
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?
For a future reference, a slashdot article on the subject with different coefficients.
Most 'photo-style' grayscale filters use luminance or another factor rather than a mean of all bands.