The color table has been roughly divided up into shades. Select one of these: Black; Blue; Brown; Gray; Green; Orange; Red; Violet; White; Yellow; to jump to that division. Show
Other sections show the HTML behind the BG/FG color samples on this page, info about printing this page in color, the problem with metallic colors, credits, and some other sources of information. [Click for top]
[Click for top] HTML behind the BG/FG color samplesThe "BG/FG color sample" is made by changing both the background and foreground colors. The background is changed with<... BGCOLOR="#xxxxxx" ...>and foreground is changed with <FONT COLOR="#xxxxxx">In these "xxxxxx" is the six hex digit of the color, such as 2F4F2F for Dark Green. You will see a solid block of color in the samples shown if your browser supports both markups; or just "### SAMPLE ###" in color if just one is supported. (Almost all support both now.) [Click for top] Description of Columns
[Click for top] The Problem with Metallic ColorsSeveral times folks have written asking what the codes are for a metallic color, such as gold, silver, or copper. It is my understanding that these tones cannot be depicted with an RGB code because they are not composed of a single basic color: Several different shades are mingled to produce a shiny-metal look. The mingling of shades requires the use of a GIF, JPG or other image; it could be used as a background. If my understanding of this is a misunderstanding then I'd greatly apprecate enlightment.Here are some attempts to make a metal color with just RGB, as depected at Netscape at http://home1.netscape.com/home/bg/colorindex.html [Click for top]
These metallics are, IMHO, lame. Anyone who happens to have samples of metalic looking GIFs that I might use for an example here are urged to email me. A potential chrome metallic is http://isd.cme.nist.gov/graphics/backgrounds/chrome.gif, but unfortunately the image doesn't wrap properly (the edges show when used as a background). Another metalic http://www.space.net.au/~jooste/art/others/backgrounds/ripplechrome.gif also falls short of my expectations but it wraps perfectly and looks cool. (So I'm using it as my screen background :-) My exact idea of good metallic rendering is found at http://userpages.nkn.net/userpages-3d/chrome-icons.gif. Unfortunately this image is of the word "Icon" spelled out in chrome, so it cannot be used as a background. Another metalic example is this "brushed aluminum"; the same site also has unconvincing examples of "grey aluminum" and "corrugated metal". [Click for top] Other Resources
[Click for top] Printing This Page in ColorThe default settings of some browsers is to not print background colors or images, which means the color sample column will just contain "SAMPLE" printed over and over again. You can turn on the background color/image printing as follows:
There is a version of this document without the background image at http://web.njit.edu/~walsh/rgb_nobg. [Click for top] CreditsThis is a composite of several color name sources, which are indicated by letters in the "Credits" column of the table as follows:
[Click for top] Gray vs GreyHere is not only a spelling issue, but the reason why you should always use RGB color numbers instead of names in your HTML and CSS documents: Except for headings in this document the distinction of spelling "gray" or "grey" comes from the sources shown in the credits" section above. Ordinarily, gray is an American color, and grey is an English colour. However it is also possible but not wise to use the color names (yes, the strings) in your HTML to control the colors displayed by the browser instead of using the numbers as shown in samples above.The problem is that <BODY BGCOLOR="black"><FONT COLOR="yellow"> You should see yellow letters on black background. Will show yellow letters on black background on almost every browser, but<BODY BGCOLOR="black"><FONT COLOR="plum"> You should see plum letters on black background. Will show plum letters on black background only on Netscape browser. Non-Netscape browswers might show black-on-black if they don't understand "plum" and default to font=black.Likewise, an older version of the Xorg rgb.txt version lists both "grey" and "gray" spellings, but I imagine different internationalizations of Internet Explorer and other browsers might or might not know both spellings. Worse yet, I should point out that the colors shown with "X" as the credits above, are associated with the X Window System (aka X11 or X) used with most Unix-like computer systems. These colors can be specified by the name strings wherever a color is specified in X11 (configurations, resources, command lines, etc). While a few browsers might understand some of the colors, I think in general they will not, and so you best best is always to specifiy the color by number in HTML. [Click for top] TodoThe following were already suggested or are otherwise already in the works. Fold in Xorg: rgb.txt,v 1.3, which includes "grey" colors and possibly other missing spellings. Fix broken external links to metalic color samples. Arrange colors more logically, probably based on numeric hues. Research Microsoft documenation to include colors understood by Internet Exploder.[Click for top] Copyright and Copy policy
Is a special loop that can be used when a definite number of loop iterations is required?A for loop is a special loop that is used when a definite number of loop iterations is required. For loop have 3 sections, loop variable initialization, testing loop control variable, updating loop control variable.
What is the loop that performs its conditional check at the bottom of the loop?The do while loop checks the condition at the end of the loop.
Which loop is most convenient to use if the loop body must always execute at least once?The Do Statement
'do-while' loops always execute at least once, whereas while loops may never execute.
Which Java statement produces W on one line and XYZ on the next line?println("w" + "xyz"); - System.
|