Author Topic: Hexcodes, and how they work (GUIDE)  (Read 755 times)

ThinkInvisible

This exists because I'm sick and tired of people asking 'how i color name' in Cysero's server as well as red text events everywhere.

[PART ONE: HEXCODE BASICS]
A hexcode, short for 'hexadecimal code', is a group of letters and numbers that determines the color of text.
Hexcodes are usually displayed by a # before them in normal text.

Hexcodes ALWAYS have six characters. Not five, not seven, not even eighteen.
The first two are RED, the second two GREEN, the last two BLUE:
#ABCDEF

[PART TWO: HOW TO CONSTRUCT A HEXCODE]
The numbers and letters in a hexcode form a new type of number system called 'hexadecimal'.
This code has SIXTEEN places per number, instead of ten; this allows for higher numbers without taking as much space.
The numbers 0 through 9 are identical to decimal; then the letters A through F are the numbers 10 through 15.
HEXCODES CANNOT CONTAIN ANY LETTERS THAT ARE NOT A, B, C, D, E, or F.
(but if you're lucky, the program you're using will loop them back round to 0.)
A chart, for those confused:

Code: [Select]
`HEXADECIMAL: 0 1 2 3 4 5 6 7 8 9 A  B  C  D  E  F  10 11 12 13 14    DECIMAL: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20`
Each pair of numbers (red, green, blue) ranges from 00 to FF. 00 means that none of this color should be used,
while FF means that all of it should be used. If you're more used to the 0-255 system, 00 is 0 and FF is 255.
So if you do it right...
(The color of the hexcode may not be the actual color it means due to forum text, but it's close.)
#00CCFF
#FF0000
#0000FF
#FFFFFF
#000000

[PART THREE: HEXCODES IN BLOCKLAND]
Hexcodes in Blockland use the <color:[hex]> tag, where [hex] is a hexcode.
You may have more than one hexcode per message, and you DO NOT need a space before OR after the hexcode.
[hex] follows ALL rules explained above. If you use 'G' as a character, for example, it means the same thing as 0.
H is 1, I is 2, etc. So just avoid using anything that isn't a hexadecimal character, please.
Examples:

Normal Blockland chat.
<color:ffff00>Name<color:ffffff>: Text

Change the color of a centerPrint event!
onActivate -> Client -> centerPrint (<color:00ffff>This message will be teal!)

Måster Blåster

This is really useful, and here are all the colours that can be used.

ThinkInvisible

That's just Web Safe colors. You can use things like 05 and FE and other things like that in Blockland.

Chrono

This is really useful, and here are all the colours that can be used.
False, only because you said all.

Ipquarx

all
AHAHAHhaHAhHAhHAhAHahAHAHahHAhHAH
no

there are 16,581,375 possible colors
you only showed 216 of them

otto-san

This is really useful, and here are all the colours that can be used.
lol
#(00-FF)(00-FF)(00-FF)
FF is 255

255^3 = 16,581,375

gg on that one

Måster Blåster

Ok ok, that was ONLY the basic colours. Eradicate my stupidity.

Doomonkey

lol
#(00-FF)(00-FF)(00-FF)
FF is 255

255^3 = 16,581,375

gg on that one
Except the interval [0 , 255] contains 256 integers. 256^3 = 16,777,216

otto-san

Except the interval [0 , 255] contains 256 integers. 256^3 = 16,777,216
you're right