Go Back  HTML Forums - Free Webmaster Forums and Help Forums > COMMUNITY NETWORKING > The Lounge
User Name:
Password:
 

Reply
Thread Tools   Display Modes
  View First Unread
 
Old 07-28-2004, 06:47 PM
  #1
alienfish
Paladin (Level 15)
 
alienfish's Avatar
 
Join Date: Nov 2002
Location: England
Posts: 400
iTrader: (0)
alienfish is on a distinguished road
#ff0104

I was thinking where do the values come from to get the colours?

how is 020202 whatever colour, or ff01f9?

How is #ffffff white? Just a thought anybody know this, I am quite intrigued.


edited: typo #ffffff is white not #fffff

Last edited by alienfish : 07-28-2004 at 07:24 PM.
alienfish is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 07-28-2004, 07:18 PM
  #2
corey84
Deity (Level 17)
 
corey84's Avatar
 
Join Date: Mar 2004
Location: N.S.W, Australia
Posts: 887
iTrader: (0)
corey84 is on a distinguished road
good question I would like to know as well
__________________
"The most overlooked advantage of owning a computer is
that if they foul up there's no law against whacking them around a bit."
Eric Porterfield.
corey84 is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 07-28-2004, 07:34 PM
  #3
n8thegreat
Super Deity (Level 18)
 
n8thegreat's Avatar
 
Join Date: Mar 2003
Location: Dallas
Posts: 1,031
iTrader: (0)
n8thegreat is on a distinguished road
its called hexadecimal. hexadecimal, in case you dont know, is a base 16 numbering system in which there is 0-9, and then A-F. its often used in programming because you can easily convert it to binary and back.
the first two are red, the second two ar green, and the last two are blue. since there are sixteen different values, that makes 256 different values for red, green, and blue. which then opens up million of combinations with all 6 values combined. 0 - 255 are the values you can put in if you are using rgb: rgb(255, 128, 60). hexadecimal is just a different way of writing it.

so to explaine why #FFFFFF is white, it jsut means that red, green, and blue are all set to show at their maximum values, which in turn makes the whole color white. in contrast, #000000 is black because all are set to the minimum value which means no presence of the color. if you wanted to make red you would do #FF0000 because you want all red to show, and none of the other colors. you would make green by doing #00FF00, and blue by doing #0000FF. you can mix in different values and all that to make the different colors.

you could break it down, so for each pair, the first number gets you into a ballpark range, and the second number narrows it down.
so 6A, means i want the value that is direcly in the middle of 6 and 7. 60 would mean i wanted it at exactly 6, and 6F would mean i want it not wuite at 7, but just about dead on.
you could think of it as being, 6.5, 6.0, and 6.9 respectively. but of course, there are 16 values, not 10.
__________________


I was voted Best Newcomer of 2003
Bow before me!

Last edited by n8thegreat : 07-28-2004 at 07:50 PM.
n8thegreat is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 07-28-2004, 07:49 PM
  #4
alienfish
Paladin (Level 15)
 
alienfish's Avatar
 
Join Date: Nov 2002
Location: England
Posts: 400
iTrader: (0)
alienfish is on a distinguished road
ah interesting, so the letters are how much of the colours to show? What about the numbers 0-9? is it in the order 0-9-A-F?
alienfish is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 07-28-2004, 07:50 PM
  #5
n8thegreat
Super Deity (Level 18)
 
n8thegreat's Avatar
 
Join Date: Mar 2003
Location: Dallas
Posts: 1,031
iTrader: (0)
n8thegreat is on a distinguished road
its 0-F
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F
__________________


I was voted Best Newcomer of 2003
Bow before me!
n8thegreat is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 07-28-2004, 07:57 PM
  #6
bendman
Semantic Fanatic
 
bendman's Avatar
 
Join Date: Jun 2004
Location: Washington, DC
Posts: 1,301
iTrader: (0)
bendman is on a distinguished road
its funny, because I didn't have anything but a basic idea of what it was until about 2 days ago, even though I've been using them for years. I had no idea what the letters were for, so I always used generators or color tables to get the right ones. I kind of had to figure it out because notepad is the only program that wants to accept my ftp as a drive right now, but once I get started it sooo much easier to do it by hand and tweak them than it is to get them from generators.
__________________
[twitter] [facebook]
bendman is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 07-28-2004, 08:52 PM
  #7
putts
SELECT MINE FROM TITLES
 
putts's Avatar
 
Join Date: Nov 2002
Location: Frankenmuth, MI
Posts: 4,930
iTrader: (0)
putts has a spectacular aura aboutputts has a spectacular aura about
alpha beta charlie dog echo and fox?

Work in a Systems (mainframe) group for about a week and you'll be reading your newspaper in Hexidecimal
__________________
Signature Image Rotator will return when I have time to fix it

Running Scoreboard
Anthony : 3 points
putts is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 07-29-2004, 02:57 AM
  #8
Horus_Kol
Mod of the Underlay
 
Horus_Kol's Avatar
 
Join Date: Jun 2002
Location: At a desk, hooked up and ready to rock
Posts: 17,347
iTrader: (0)
Horus_Kol is a glorious beacon of lightHorus_Kol is a glorious beacon of lightHorus_Kol is a glorious beacon of lightHorus_Kol is a glorious beacon of lightHorus_Kol is a glorious beacon of light
n8, you forgot to mention WHY hexadecimal...


a hexadecimal number can take the value 0-15, which is the same as using 4-bits in binary notation.

0-255 is 8 bits, and so this is writing using a hexadecimal pair.

so when you have RGB values of (240, 232, 60) - instead of having to write out the whole binary code for this (which would be 24-bits - 3 colours, 8-bits per colour) you use the hex notation...

and the # marker before the numbers show that it is hex notation.


now - can anyone explain to me how RGB fits into 8-bits...



Quote:
Originally Posted by Putts
alpha beta charlie dog echo and fox
3 out of 6 there, I'm afraid...

the international phonetic alphabet is:

Alpha
Bravo
Charlie
Delta
Echo
Foxtrot


well, okay, you get another half for "fox"....

For some reason the international phonetics changed after WWII, as the Allies used:

Able
Baker
Charlie
Dog
Easy
Fox


Strange...
__________________
New Photo Gallery: Modus InOperandi
Personal Blog: HorusKol
Articles on Programming and Development (PHP/HTML/CSS, C/C++, more): RandomTweak
Horus_Kol is online now   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote

Reply
KEEP TABS
SPONSORS
 
Boxedart



 
 


 
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
  
 
 
 



 
  POSTING RULES
 
 
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Thread Tools
Display Modes

Forum Jump

 

All times are GMT -5. The time now is 02:38 AM.

   

Mascot team created by Drawshop.com

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.

Server Monitoring by ENIACmonitor 0.01
HTMLforums.com © Big Resources, Inc. Web Design by BoxedArt.com
vRewrite 1.5 beta SEOed URLs completed by Tech Help Forum and Chalo Na.