Here is your opportunity to demonstrate the three-color theory by using your computer. I am indebted for this to Joe Burns, on whose color demonstration file it is based. Joe's web-course HTML Goodies and his subsequent book by the same title taught me practically everything I know about writing web documents, and both are highly recommended. You see below two tables with colored fields. The top one approximates the rainbow colors--at least on my monitor (yours may be designed and/or adjusted differenly). The one on the bottom is for you to experiment with. To use this file, use your web browser to look at its "Page Source" (on View menu in "Netscape"). and copy that file to your computer, in text format (you may have to cut and paste --depends on your set-up).
|
red | orange | yellow | green |
blue | indigo | violet | white |
background |
one | two | three | four |
five | six | seven | eight |
nine |
If you look at the source-code file, you will find it is written in HTML, the language-code of the web. You can however proceed even if you are not familiar with HTML, as long as you only change the entries described below. On your saved file you will see the specifications of two tables. The contents of each cell of the table are preceded by the letters TD (Table Data), and each of the three rows is preceded by TR (Table Row). The entry which specifies the color of a given cell in the table is of the form
The particular specification above is taken from the bottom cell, whose color matches the background colors of "From Stargazers to Starships." It is actually a combination of three numbers:
What? They do not look like three numbers? That is because they are written in base 16, a close cousin to the binary system (base 2) in which computer hardware is programmed. In that system, instead of counting
The letters A to F are now numerals. In base 10, 100 = 10x10. The number written 100 in base 16 would in base 10 be written 16x16 =256, and the number preceding it is FF=255. BOE6E6 gives the intensity of the three colors which make up the background: B0 is the intensity of red, E6 is the intensity of green and the second E6 is the intensity of blue. If you wanted to specify pure red, green or blue, you would choose FF000, 00FF00 or 0000FF, and these choices are in fact used in the first table. Also, 000000 is black--no color at all, and FFFFFF is white, the sum of all three colors at saturation intensity. In between you can have 777777 or AAAAAA or CCCCCC giving you various shades of gray. If you want to experiment with colors, let your browser read the copy of this file from your computer ("Open ... Page"). Leave the colors of the first table for reference, but change those of the second table using your word processor (always save as TEXT!), then command "reload" and see what you have accomplished. You can also change the color of the lettering, by modifying the color specification that follows the word "FONT"--but don't be surprised at bizarre results!
|
|Astro Net ® Home Page | Kanishkas Home Page|
Copyright © 01/2000 Kanishka H. Lankatillake