htmlDemo3 - Demo 3 XP Working with Color in HTML XP Using...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
1 Demo 3 Adapted From New Perspectives on HTML and XHTML, Comprehensive Patrick Carey, Course Technology 1 XP Designing a Web Page Working with Fonts, Colors, and Graphics Demo 3 Demo 3 Adapted From New Perspectives on HTML and XHTML, Comprehensive Patrick Carey, Course Technology 2 XP Working with Color in HTML • Using color will make your web pages: – visually interesting – eye-catching for the reader • HTML is a text-based language, requiring you to define your colors in textual terms. • HTML identifies a color in one of two ways: – by the color value – by the color name Demo 3 Adapted From New Perspectives on HTML and XHTML, Comprehensive Patrick Carey, Course Technology 3 XP Using Color Values • To have more control and more choices, specify colors using color values . •A color value is a numerical expression that precisely describes a color. Demo 3 Adapted From New Perspectives on HTML and XHTML, Comprehensive Patrick Carey, Course Technology 4 XP Basic Principles of Color Theory • Any color can be thought of as a combination of three primary colors: red , green , and blue . • By varying the intensity of each primary color, you can create almost any color and any shade of color. • This principle allows a computer monitor to combine pixels of red, green, and blue to create the array of colors you see on your screen. Demo 3 Adapted From New Perspectives on HTML and XHTML, Comprehensive Patrick Carey, Course Technology 5 XP Adding the Three Primary Colors Primary color model for light Demo 3 Adapted From New Perspectives on HTML and XHTML, Comprehensive Patrick Carey, Course Technology 6 XP RGB (Red, Green, and Blue) Triplets • Software programs, such as your Web browser, define color mathematically. • The intensity of each of three colors (RGB) is assigned a number from 0 (absence of color) to 255 (highest intensity). • In this way, 255 3 , or more than 16.7 million, distinct colors can be defined. • Each color is represented by a triplet of numbers, called an RGB triplet , based on the strength of its R ed, G reen, and B lue components.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 Demo 3 Adapted From New Perspectives on HTML and XHTML, Comprehensive Patrick Carey, Course Technology 7 XP RGB Triplets Examples – White has a triplet of (255,255,255), indicating that red, green, and blue are equally mixed at the highest intensity. – Yellow has the triplet (255,255,0) because it is an equal mixture of red and green with no presence of blue. Demo 3 Adapted From New Perspectives on HTML and XHTML, Comprehensive Patrick Carey, Course Technology 8 XP A Typical Colors Dialog Box • In most programs, you make your color choices with visual clues, usually without being aware of the underlying RGB triplet. • This figure shows a typical dialog box in which you would make color selections based on the appearance of the color, rather than on the RGB values.
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 05/29/2010 for the course CS 22 taught by Professor Weddffd during the Spring '08 term at Colorado State.

Page1 / 7

htmlDemo3 - Demo 3 XP Working with Color in HTML XP Using...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online