# Bit masking (or not)?

**URL:** https://discourse.processing.org/t/bit-masking-or-not/45177
**Category:** Processing.py
**Created:** [October 14, 2024, 9:17am UTC](https://discourse.processing.org/t/bit-masking-or-not/45177 "2024-10-14T09:17:50Z")
**Posts on this page:** 1
**Showing post:** 10

<div class="post-metadata">

### Author: ![paulstgeorge](https://avatars.discourse-cdn.com/v4/letter/p/53a042/32.png) [@paulstgeorge](https://discourse.processing.org/u/paulstgeorge)
#### Post date: [October 27, 2024, 2:25pm UTC](https://discourse.processing.org/t/bit-masking-or-not/45177/10 "2024-10-27T14:25:46Z")

</div>

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

> [@glv](#):
>
> stick to using _ **integers only** _,

This conversation came out of the discussion: [Color to grayscale algorithm](https://discourse.processing.org/t/color-to-grayscale-algorithm/45171)

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!

---

_[View the full topic](https://discourse.processing.org/t/bit-masking-or-not/45177)._
