Architect Archive

Thread: My unoffical guide to COLORED TEXT using HEX CODE

LadyLeala
Sun Feb 08, 2004 4:13 pm
#1

Ok, here'smy unofficial guide to the ambiguous "hex colors":


DEFINITION

"Hex" is short for "Hexadecimal", which means: "Of, relating to, or based on the number 16"


Now what the heck does that have to do with colors?? Well, I'll get to that.


It's actually kinda easy, once you understand the basic structure of these numbers.



BASIC STRUCTURE

Normally we count to 16 like this:

1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16


But, in the hexadecimal system, you count to 16 using only a single digit... like this:

0, 1, 2, 3, 4, 5, 6, 7, 8, 9,A, B, C, D, E, F


So the letter A would represent the number 10. And (oddly) the number 0 in hexadecimal would be the number 1 in regular counting. You just have to shift your thinking a little.


For purposes of making colors in Star Wars, there are 6 hexadecimal numbers that are used. They are used in three pairs of two numbers. For example FFFFFF is a code you might see, and it happens to represent the color WHITE (I'll explain that shortly).



BASIC COLORS

Next, in computers,there are THREE BASIC COLORS that we are working with. Now you'll have to forget a bit about what you learned in art class, because this is computer land. So the color wheel is a little skewed.


The three basic colors we are dealing with here are RED, GREEN, and BLUE. And you mix various amounts of each of these colors to create a very broad spectrum. Virtually any color can be made on a computer using these three colors.



COLOR RANGE

This is perhaps the trickiest part of making your colors. I'm going to try and explain it simply.


The three pairs of numbers used in the color code in the game each control the AMOUNT of each of the three BASIC COLORS to use. For example, the code "00" represents ZERO of that particular color. So if you used "00" in the very first two spaces for your code, then there would be NO red color in your text.


Conversely, the code "FF" is at the opposite end of the scale, and shows that you have the amount of red being used as high as it can go (namely, a very bright red color like this).


So 00 and FF are the two extremes here. It's the numbers in between that get to be tricky to figure out. So let me put down a couple of examples, and hopefully this'll make more sense.


I listed the number sequence above to count to 16 using hexadecimal. Now I'm going to use TWO hexadecimal digits, and show you how the sequence goes:


00, 01, 02, 03, 04, 05, 06, 07, 08, 09, 0A, 0B, 0C, 0D, 0E, 0F, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 1A, 1B, 1C, 1D, 1E, 1F, 20, ... etc up to FF.


Are you following me here?


So you can see the range here. Depending on which pair of letters/numbers you enter, you will get varying degrees of that particular color.



THE SIX CHARACTERS OF THE CODE

So now that you've got some fundamentals down... it's time to show you how SIX of these numbers work with thethree colors: RED, GREEN, and BLUE.


They go in that exact order when you are making your code. Like this:


FF0000 - This shows that we're using "FF" for RED and then "00" for both GREEN and BLUE. The color that this will make is of course RED.


00FF00 - In this one, the "FF" is put in the middle, which represents GREEN. Since the other two are both "00", the result here will be GREEN.


0000FF - And of course, this code will make the color BLUE.



MIXING COLORS

Now we get to mix the colors! Yippee!!!


Okay, if you mix RED and BLUE you get PURPLE. Does everyone know that? It works the same way with this code.


FF00FF - makes PURPLE.


Oddly, there are a couple weird combinations to get some other common colors.... in computers, you mix RED and GREEN to make YELLOW. (Sorry for you artistic folk who say this is not so! I assure you, it is. )


FFFF00 - makes YELLOW.


Another odd one is CYAN. For this one, if you mix GREEN and BLUE, you get CYAN.


00FFFF - makes CYAN.


The last odd one that I can think of is WHITE. But it's not really odd if you know about prisms and rainbows. If you mix an equal amount of ALL three colors, you will get various shades of WHITE.


FFFFFF - Bright WHITE

AAAAAA- LIGHT GRAY

999999- GRAY

555555 - DARK GRAY

000000 - BLACK



THE FINAL TOUCHES

Now we're on the last stretch... you've got to mix it all together.


All of the above examples that I stated were for BRIGHT colors. And it certainly did not include EVERY color. You may need to experiment for awhile until you get it just right. But here's a couple more examples:


8B4500 - BROWN

EE7600 - ORANGE



USING THESE CODES IN STAR WARS

So now you want to implement these colors in the game? Well, keep in mind that the only things you can use these color codes on are: Structure names, backpacks, Spatial typing (including tells and such), and emails.


In order to tell the game that you are using a color code, you have to include a BACKSLASH "\" followed by a NUMBER SIGN "#". So it would look kind of like this:


\#FF00FF - This code in the game would make all the text after it appear PURPLE.


The text that you want to be purple should start immediately after the last letter/number in the color code. You can use a second BACKSLASH "\" at the end of your code if it makes it easier for you.


\#FF00FFHello!

...and...

\#FF00FF\Hello!


...would both look just like this in the game:


Hello!


THE WRAP-UP

That's about all I have for my guide folks. Oh yes, and it IS possible to use more than one color code in a single name for something. Just insert a fresh \#xxxxxx before each color change. Of course you have to use numbers/letters in place of the x's.


Let me know if you have any questions! If I need to make any changes to my post to make corrections, you'll have to wait until I become a veteran.



Wayfarer's Designs

Relocating on CHILASTRA

CLOSED UNTIL FURTHER NOTICE


LadyLeala
Sun Feb 08, 2004 4:19 pm
#2


Oh, I forgot to add this link... this is a page that has a whole bunch of colors, and shows the hexadecimal code that makes up each.


http://www.december.com/html/spec/color.html




Wayfarer's Designs

Relocating on CHILASTRA

CLOSED UNTIL FURTHER NOTICE


Pawlin
Sun Feb 08, 2004 7:52 pm
#3

Great! I'll give a pointer to this thread from the FAQ entries on making color signs.



Pawlin Construction of Kettemoor.
Harvesters and Crafting stations - Triad Coronet Mall just outside Coronet (-177 -5490)
Architect, House, Furniture, Harvester FAQ

Oprolan the Wookiee of Sunrunner. Cheap resources W. Daeric Talus (-639 -3058)
"Worst FF ever *thumbsdown*" -- Pawlin fan club
"I am not going to win Miss Congeniality again this year in the Senate." -- John McCain


** Please refer to Elyssa's answer
ElBlufer
Sun Feb 08, 2004 10:41 pm
#4

That link is great! thanks!



Elliott Blufer

Master Architect of New Acropolis
Elliotts Deeds is located at -7175 -3908, on Naboo
Architect Forums - Carbineer Forums - Valcyn Trade Forums
Official Carbineers Motto: I bet I can kill me before you can kill me!
Auhal
Mon Feb 09, 2004 2:36 am
#5

Any idea why this won't work for me? I am in the UK, and so probably have a different keyboard. The backslash on my keyboard is next to the z key - where is it on a US keyboard so I can try that?



STARSIDER ORAS HAUKES / RAUL HAUKES INFINITY AVAV / AUHAL
Niklesnitz
Mon Feb 09, 2004 7:48 am
#6






Veers_Intrepid wrote:

i just wish this feature back into crating :/


still dont get it why devs removed this nice feature /shrug









I know, this really was not a good idea. But the reason they said they did it was because it was taking away the the uniqueness of the premium auction feature on the Bazaar. As a merchant, premium auctionsis supposed to be a perk for you, but really it doesn't do anything. Thus this was a very bad change.





Holosim - Master Architect of Flurry
Emee
- Gunslinger of Flurry


Come see the market of New Freeport, Naboo - Flurry

Just a Hop, Skip and a Jump from the Shuttleport


Niklesnitz
Mon Feb 09, 2004 7:53 am
#7






Auhal wrote:
Any idea why this won't work for me? I am in the UK, and so probably have a different keyboard. The backslash on my keyboard is next to the z key - where is it on a US keyboard so I can try that?






Strange, are you using the number sign ( # ) after the backslash ( \ )? It's also good to put a backslash after the HEX codes as well. \#00ff00\


On a US keyboard the backslash is located somewhere by the backspace key, which is underneath the F11 to F12 keys.




Holosim - Master Architect of Flurry
Emee
- Gunslinger of Flurry


Come see the market of New Freeport, Naboo - Flurry

Just a Hop, Skip and a Jump from the Shuttleport


LadyLeala
Mon Feb 09, 2004 7:54 am
#8

On my keyboard it is right above my ENTER key.


Just a thought... but I wanna make sure we've got the right key.


The backslash should look like this:


\



There is another slash key (sometimes called a "forward slash")... make sure you're not using this one:


/






Wayfarer's Designs

Relocating on CHILASTRA

CLOSED UNTIL FURTHER NOTICE


Veers_Intrepid
Mon Feb 09, 2004 1:31 pm
#9

i just wish this feature back into crating :/


still dont get it why devs removed this nice feature /shrug





Veers - Master Architect / Master Artisan / Master Droid Eng. / Merchant from Dantooine (SWG Beta Tester)
Customer: what i can do with a droid? DE: hmm i dunno, but they are cute ask a Dev
Mehlin
Fri Apr 02, 2004 10:28 pm
#10

/bump



_____________________________________________________
~Stidisxa~
~Architect/Merchant Master~
~Zesty Incorporated~
~Dantooine, Valley Of Darkness~
Recovering From Account Bug
ThorsUK
Sat Apr 03, 2004 4:53 am
#11

for the guy form the UK i'm from the UK also and my backslash key does not work in starwars so i have bound cut copy and paste under key bindings in options and just paste it all into the game from notepad. it's in the chat tab on keybindings.


the possion on the US keyboard layout (use dells at work) is where part of the enter key is on our key boards. next to this key ].


hope that helps some.





TTorvid DeusT
MANAGER
DirtDigger
Sun Apr 04, 2004 4:54 am
#12

I'm also in the UK and the backslash key is DEAD. What an odd oversight!.. but then again it only seems to be used for coloured texts. I also have to cut and paste (cut and paste accepts any windows cut if you alt-tab to windows then notepad)








<OCARSIS LOMAIN<
OCARSIS TRADING - EXOTIC Armor - Bounty Hunter, StormTrooper, RIS
Bestine, Tattooine,Bria
ü -800 -4252ü


Skye_Trig
Mon Apr 05, 2004 1:16 am
#13

Great work on this guide!


//Cece





-ARCONA Inc-Shop at -4250, 2950. SW of Theed, Naboo on Farstar
Tenjiwi - Master Architect / Master Tailor / Master Artisan At Your Service
Page 1 of 2
Previous Next