foodkruto.blogg.se

Warcraft 3 color codes
Warcraft 3 color codes







warcraft 3 color codes

You might think, there are a lot of colors no way it can all be stored in 1 byte, and you are correct. However, you don't need any bits to create a 0, so that means the byte range is 0-255 which is 256 placeholders. Since 1 byte is 8 bits, we start from right multiplying by 2.īinary #2 has every bit set to 1 which means that 8 bits ( 1 byte ) can hold a maximum value of 255. The binary code is the language the computer understands.īelow is a table on how binairy works, and how a number is calculated from it.

warcraft 3 color codes

The Alpha channel handles transparency, and the four combined can be called "RGBA".Įach of these channels requires 1 byte so that the computer can render the entire color.ġ byte exists of 8 bits, when we talk about bits we talk about binary code which exists of 1 and 0. Usually when we talk about these colors, we sum it up to RGB.Įach primary color can be called a channel, sometimes there is a fourth channel as well call Alpha.









Warcraft 3 color codes