Macromedia Flash8 Bible

Computer monitors display color by using a method called RGB color. A monitor screen is a tightly packed array of pixels arranged in a grid, where each pixel has an address. For example, a pixel that's located 16 rows down from the top and 70 columns over from the left might have an address of 70,16. The computer uses these addresses to send a specific color to each pixel. Because each pixel is composed of a single red, green, and blue dot, the colors that the monitor displays can be "mixed" at each pixel by varying the individual intensities of the red, green, and blue color dots. Each individual dot can vary in intensity over a range of 256 values, starting with 0 (which is off) to a maximum value of 255 (which is on). Thus, if red is half-on (a value of 127), while green is off (a value of 0), and blue is fully on (a value of 255), the pixel appears reddish-blue or purple.

The preceding paragraph describes unlimited, full color, which is sometimes referred to as 24-bit color. Newer computers use 24-bit color to deliver cleanly rendered graphics without a hitch. However, older computer systems are incapable of displaying full color. Limited color displays are either 8-bit or 16-bit displays. Although a full discussion of bit-depth is beyond the scope of this book, it is important to note several points:

Discussing Web-Safe Color Issues

Web-safe color is a complex issue, but what it boils down to is this: The Macintosh and Windows platforms handle their color palettes differently, so browsers don't have the same colors available to them across platforms. This leads to inconsistent, unreliable color — unless you're careful to choose colors for Web design from the Web-safe palette. The Web-safe palette is a selection of 216 colors that's consistent on both the Mac and Windows platforms for Netscape, Explorer, and Mosaic browsers. The Web-safe palette contains only 216 of 256 possible indexed colors, because 40 colors vary between Mac and Windows displays. Use the Web-safe palette to avoid color shifting and to ensure greater design (color) control.

By default, the Color Swatches panel (Ctrl+F9 or z+F9) loads with Web 216 colors, and if the swatches are modified, this swatch palette can always be reloaded from the Options menu at the upper right of the panel. Web 216 restricts the color palette to Web-safe colors. However, intermediate colors (meaning any process or effect that generates new colors from two Web-safe colors) — such as gradients, color tweens, filters, transparent overlays, and alpha transitions — will not be constrained to Web-safe colors.

When there are more than 16 million possible colors, why settle for a mere 216? Consider your audience. Choose a color strategy that will enable the majority of your viewers to view your designs as you intend them to appear. For example, if you're designing an e-commerce site for a very broad audience on a mix of platforms, then you might seriously consider limiting your work to the Web-safe palette. (If you choose this route, then hybrid swatches may enable you to access colors that are technically unavailable, while remaining within the hardware limitations of your audience.) On the other hand, if you're designing an interface for a stock photography firm whose clients are mainly art directors with high-end Mac machines, then color limitations are probably not an issue. In either case, keep in mind that no one will see the exact same colors that you see. The variables of hardware, calibration, ambient light, and environmental influences are unavoidable. If you do settle for 216 colors, remember that the value of color in Web design (or any design or art for that matter) has to do with color perception and design issues, and numbers have little to do with that.

Using Hexadecimal Values

Any RGB color can be described in hexadecimal (hex) notation. This notation is called hexadecimal because it describes color in base-16 values, rather than in base-10 values like standard RGB color. This color value notation is used because it describes colors in an efficient manner that HTML and scripting languages can digest. Hex notation is limited to defining flat color, which is a continuous area of undifferentiated color. In HTML, hexadecimal notation is used to specify colored text, lines, backgrounds, image borders, frame cells, and frame borders.

A hexadecimal color number has six places. It allocates two places for each of the three color channels: R, G, and B. So, in the hexadecimal example 00FFCC, 00 signifies the red channel, FF signifies the green channel, and CC signifies the blue channel. The corresponding values between hexadecimal and customary integer values are as follows:

16 integer values:

0

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16 hex values:

0

1

2

3

4

5

6

7

8

9

A

B

C

D

E

F

The Web-safe values in hexadecimal notation are limited to those colors that can be described using combinations of the pairs 00, 33, 66, 99, and FF. White is described by the combination FFFFFF, or all colors on 100 percent. At the other end of the spectrum, black is described by the combination 000000, all colors on 0 percent, or off. A medium gray would be described by the combination 666666, or all colors on 40 percent.

Using Custom Web-Safe Colors

The basic Web-safe color palette will be broad enough for most project needs, but if you feel too limited by these colors, you can create custom-mixed Web-safe colors. Tools exist to help you to build patterns composed of Web-safe colors that fool the eye into seeing a new color. These are essentially blocks of preplanned dithers, built out of the Web-safe palette, that augment the usable palette while retaining cross-platform, cross-browser color consistency:

After you've created some custom swatches and saved them to a folder on a local machine, you can use them in your Flash projects by importing the GIF directly to your document Library and using the Color Mixer panel to apply the GIF as a bitmap fill. Figure 7-1 shows two Web-safe colors used to create a custom-dithered GIF swatch and the mixed custom Web-safe color as it displays when it's imported to Flash.

Figure 7-1: Two Web-safe colors mixed to create a custom-dithered color. The dithered GIF file was imported to the Flash Library and the solid Web-safe colors used in the GIF were added to the Color Swatches panel.

Note that the dithered GIF color is displayed only in the Mixer panel under the Bitmap fill option, whereas the solid Web-safe colors can be added directly to the Color Swatches panel. We describe the steps for adding colors from a GIF file to the Color Swatches panel in the "Importing custom palettes" section later in this chapter, and we describe the steps for applying a bitmap fill in the section "Selecting bitmap fills."

Using Color Effectively

According to some designers, the issue of color on the Web has been seriously confused by the misperception that people can set numbers to give them Web-safe colors, and that, if they do this, they will have good color. Have you ever noticed that as soon as someone starts designing onscreen, it's as if he's forgotten anything he may have learned about legibility and design on the printed page? When designers get caught up in the excitement of layered patterns and multicolored text, they have a tendency to overlook the obvious problem, which is that the result is entirely illegible. Although we all want to be creative and unique, certain color rules can actually be more liberating than restricting.

Although unconventional design choices can add an element of surprise, a touch of humor, or just a visual punch that will help your layout stand out from the rest, it is vital that you don't compromise your end goal. When you get noticed, you want to deliver your message successfully — whether that message is "Buy this product" or just "Hey, this is a cool site." If you start to carefully deconstruct the layouts that grab your attention, you will probably find that there are consistencies to the choices that were made in the design, regardless of the content. You'll begin to notice that even the most bizarre or cutting-edge designs share certain features that make them eye-catching and memorable.

Much of the underlying strategy in a design may be transparent, or not consciously perceived by the viewer. But don't make the mistake of thinking that individual preference is completely unpredictable. The secret to successful design is leveraging the unconscious visual language that your audience is physically and culturally conditioned to respond to. Individual viewers may have specific preferences for certain colors or styles, but they will all recognize and understand many of the same visual conventions.

Although learning to apply all these conventions and to integrate them into your own design style can take years of study and practice, there are some fundamental "truths" that will serve you well, no matter how long you've been designing:

Figure 7-2: The same gray circle displayed on different background values will appear to be darker or lighter by comparison.

Figure 7-3: Varying levels of color contrast determine legibility and emphasis.

Figure 7-4: Variety in the size and shape of elements will also add visual contrast.

Figure 7-5: Adding contrast to a weak design (left) makes for a stronger visual hierarchy (right) and orients readers in your layout.

Here's the bottom line: Color can help a good design look great, and when used with strategy, it can help engage the viewer and sell your message. But no amount of color can save a poorly planned design, so consider the underlying structure, contrast, and visual hierarchy of your layout before adding color.

Innumerable books on color theory and many different software solutions that can provide inspiration and take the guesswork out of choosing color schemes are out there. These are just two sources that can help you create harmonious color families for your designs:

Tip 

The Pantone system for specifying ink color is the industry standard for communication between designers and printers. Pantone swatch books are indispensable and well worth the investment if you do any print work. Visit www.pantone.com to learn more. Pantone has also developed systems to help designers and retailers who need to specify and display color consistently in a digital environment. Visit www.therightcolor.com to learn more if you are developing online catalogues or other projects that require precise color matching. Pantone also offers swatch books with both CMYK and Hex color values printed on them to make color matching between screen graphics and printed graphics easier. If you are a designer who "thinks in Pantone," you might find it worthwhile to invest in Pantone's Colorist software. Available for Windows and for Mac, Colorist makes Pantone swatches available from programs that do not have built-in Pantone color libraries (including Flash and Fireworks).

Категории