You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Those values are how to calculate color luminance. You multiply them against the R, G, and B values respectively as shown in the formula for pixelDiff.
Why this line?
var pixelDiff = rgba[i] * 0.3 + rgba[i + 1] * 0.6 + rgba[i + 2] * 0.1;
Where did the 0.3, 0.6, 0.1 come from?
The text was updated successfully, but these errors were encountered: