Jump to content

NormalTextColour property


Recommended Posts

-_- Hex only contains 6 characters.

Hexadecimal has no limit to the amount of characters.

EDIT: In mathematical theory, not in practice of course.

In this case the HEX strings are 2 characters long, and there's a string of 3 or 4 depending on if Alpha is included. Each 2 character string is 0-F with A-F representing the numbers 10-15. By translating this you can convert HEX into more readable numbers by multiplying each individual character by 16 to the power of the digit representing how far it is from the last character, like so:


F = 15, A = 10

F = 15*(16^1) = 240

A = 10*(16^0) = 10

F+A = 250.

Now, colours are often represented by a 0-255 value (00-FF in HEX) because a single byte of data (2^8) can represent a value anywhere from 0 to 255, depending on the bits.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...