I have shared other projects on bitwise operations in Scratch (e.g., https://scratch.mit.edu/projects/516649007/ ), and have considered using it in several other projects (e.g., in the Cohen–Sutherland Algorithm for line clipping https://scratch.mit.edu/projects/573209280/ ). But to be honest, it's cumbersome in Scratch. Something which makes it a little easier, is the fact that you can write integers in binary format, using the "0b" prefix. This is something I recently learnt from @RokCoder. Thanks! There are some comments in the code, if you'd like to follow my train of thought in this example. All code in this example by me (@kriblo).