Fr_
New member
C O L O U R S
You have probably seen the prepared pieces of BB-codes that you can use with ease by just highlighting and clicking. Understanding how to change it to something more unique can be much harder for many. Personally, it took me quite some time to figure out how this system works, until I started with programming. I believe that a large portion of the users still aren’t too familiar with how this actually works and therefore this could be fun to learn more about.
The BB-codes for colours are based on the commonly used RGB-system (red-green-blue) and therefore made up by the three components; red, green and blue. The first two characters in the code represent red, the second two represent green and the final two represent blue. Each value goes from 00 (lowest) to ff (highest).
Look at this piece of code:
Code:
[color=#000000]Example[/color]
In action, it would look like this:
Example
In the example, all the values are set to minimum and therefore the colour is the darkest black you can imagine. Change it to ffffff and the colour will be the brightest white you can imagine.
Have a little look at some other colours:
Code:
[color=#ff0000]Pure red[/color]
Pure red
Code:
[color=#00ff00]Pure green[/color]
Pure green
Code:
[color=#0000ff]Pure blue[/color]
Pure blue
Try and look at those pure colours on your screen from different angles. Colours that are made out by both red, green and blue (which is pretty much all colours you see on a screen) will shift and appear like another colour depending on how you look at your screen (this applies for most screens). The reason for this effect is because other colours are actually involved even if you don't notice them. In the common red colour there are still green and blue pixels hiding, in difference of how it is with pure red, where 100% of the pixels are glowing red.
Compare common red with pure red, and try to look at your screen from different angles. What do you see?
RED RED
Mixing the values a little will create unimaginable amounts of different colours (to be more exact, 16777216 different colours). Try!