Programmatically darken a Hex colour [closed]
If you’re not bothered about too much control, and just want a generally darker version of a colour, then: col = (col & 0xfefefe) >> 1; Is a nice quick way to halve a colour value (assuming it’s packed as a byte per channel, obviously). In the same way brighter would be: col = (col … Read more