February 2014
Beginner
1248 pages
62h 25m
English
In this section, we introduce the technologies you’ll use to build the Color Chooser.
The app uses the RGBA color system to display a rectangle of color based on the values of four Sliders. In RGBA, every color is represented by its red, green and blue color values, each ranging from 0 to 255, where 0 denotes no color and 255 full color. For example, a color with a red value of 0 would contain no red component. The alpha value (A)—which ranges from 0.0 to 1.0—represents a color’s opacity, with 0.0 being completely transparent and 1.0 completely opaque. The two colors in Fig. 26.7’s sample outputs have the same RGB values, but the color displayed in Fig. 26.7(b) is semitransparent. You’ll use a Color object ...
Read now
Unlock full access