I thought I would post this here even though it pertained to tads what the hex game posted in the game section.
http://ewebdev.com/html/understanding-color-codes.html
I never understood how it works and I understand a lot more now. Although I got lost in the...
part so if anyone wants to help explain this to me I would appreciate it. Yes I mean break it down into baby talk or retard talk whatever you call it.
http://ewebdev.com/html/understanding-color-codes.html
I never understood how it works and I understand a lot more now. Although I got lost in the...
- Code:
OK then, what is a Hex value? I'm glad you asked! Your computer stores information as single ones and zeros. Each of these tiny single values is called a "bit". We then combine 8 of these "bits" to make a "byte". So a byte is 8 bits. If you recall from high school math, you can count in various "bases". We normally use base 10 or "decimal", which uses 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 to represent a number. Likewise, if we use the ones and zeros I just mentioned, we're talking about just two possible values for each digit, 0 or 1, and this is called base 2 or "binary". However, in computers, we also use base 16, or hexadecimal (hex for short) because it packs more values into a single space. Hex uses the following digits to represent a number: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F. To represent the number 128 in decimal or base 10 takes 3 digits (128), in binary it takes 8 digits (10000000), and in hex or base 16 it takes just 2 digits (80). So by using hex values we save storage space and gain efficiency.
part so if anyone wants to help explain this to me I would appreciate it. Yes I mean break it down into baby talk or retard talk whatever you call it.