Palette Man Components

In order to create this page, I used an image[1] with all 216 Web-safe colors, as in Figure 11-1.

[1] Thanks to Steve Nelson of Clear Ink for creating this image.

Figure 11-1. The color cube

When a user moves his or her mouse over this image, one of four layers of color becomes whatever color the mouse is over. Figure 11-2 shows what the four layers look like.

Figure 11-2. The four color layers

If any of you spent time as graphic designers, you'll probably recognize the homage to Josef Albers. He painted a lot of nested, colored ...

Get Advanced JavaScript™: Insights and Innovative Techniques now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.