Tag: bitmask
-
Tip: Hex Colors
There’s lot of ways to represent colors. Crayons have names like Sea Green and Peach. I used these two colors since I’m color blind and they once got me in serious trouble when I was young. I and many with color blindness can’t tell them apart easily. Knowing some other identifying system is critical in describing…
-
How and Why To Use Unsigned Integers (UInt)
In the beginning there was the unsigned integer, and it was good. If you go deep into machine code you will still find that any device is nothing more than unsigned integers. All other values Int, Float, Bool, Character, and String are forms or collections of unsigned integers. To a modern high-level language like Swift,…