U16 colors

From WiiBrew
Jump to navigation Jump to search
This page is simply a brief explanation of U16 colors.
For a more up to date and in depth explanation of how these are used in general, see the Wikipedia entry.

u16 codes are codes that represent colors using a 16 bit intiger. u16 mode is also known as Highcolor mode.

Format

u16 codes are unsigned 16-bit integer color codes. The first 5 bits represent red, the second 5 bits represent blue, and the last 6 bits represent green.

bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0
R R R R R B B B B B G G G G G G

Common u16 Colors

Here is a list of u16 codes and their color:

u16 code color
0x0000 Black
0xFFFF White
0xBDF7 Light Gray
0x7BEF Dark Gray
0xF800 Red
0xFFE0 Yellow
0xFBE0 Orange
0x79E0 Brown
0x7E0 Green
0x7FF Cyan
0x1F Blue
0xF81F Pink