Bit mask will only let you extract a single bit from the mask. most likely it worked but the slice it extracted from your gradient was razor thin so you didn’t see it.
If you want to extract a certain range the math is pretty simple.
Bit mask will only let you extract a single bit from the mask. most likely it worked but the slice it extracted from your gradient was razor thin so you didn’t see it.
If you want to extract a certain range the math is pretty simple.