Converts 24 bit colors to 15 bit colors
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nytpu 0f4edbabe1 migrated to sourcehut 3 years ago migrated to sourcehut 3 years ago

rgb555conv - converts 24 bit color to 15 bit color

I got tired of manually converting 24 bit hex colors (like 0xRRGGBB) into 15 bit BGR555 colors (like 0b0BBBBBGGGGGRRRRR) so I slapped this together to do it for me.

Migrated to sourcehut, view the code here