Blockland Welcome, Guest. Please login or register.
Did you miss your activation email?
May 23, 2018, 05:06:01 AM

Home Help Login Register
+  Blockland Forum
|-+  Blockland Forums
| |-+  Help
| | |-+  Hexcodes, and how they work (GUIDE)
Pages: [1]
Author Topic: Hexcodes, and how they work (GUIDE)  (Read 554 times)
ThinkInvisible

« October 21, 2012, 04:59:35 AM »

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:
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!)
Logged
Ad Bot

« Full members do not see ads »

Måster Blåster

« October 21, 2012, 05:54:08 AM »

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

Logged
ThinkInvisible

« October 21, 2012, 06:38:04 AM »

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

« October 21, 2012, 07:24:33 AM »

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

« October 21, 2012, 07:45:33 AM »

all
AHAHAHhaHAhHAhHAhAHahAHAHahHA hHAH
no

there are 16,581,375 possible colors
you only showed 216 of them
Logged
otto-san

« October 21, 2012, 07:49:13 AM »

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
Logged
Måster Blåster

« October 21, 2012, 08:13:19 AM »

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

« October 21, 2012, 08:26:00 AM »

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
Logged
otto-san

« October 21, 2012, 09:46:21 AM »

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


Login with username, password and session length

Powered by SMF 1.1.20 | SMF © 2013, Simple Machines
Page created in 0.024 seconds with 18 queries.