Bit masking (or not)?

Hi! Its your code. Sorry, I should have said.

This conversation came out of the discussion: Color to grayscale algorithm

The widely used algorithms mentioned have floats for RGB values. For example,
Luminance = 0.2126 * Red + 0.7152 * Green + 0.0722 * Blue

I’ll read the Medium articles with great interest. Thank you!