SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 156 | Next

Richard Wagner

"Professional iPhone and iPod touch Programming: Building Applications for Mobile Safari"

0
and 1.0 that indicates the position of the color in the gradient. The color argument is any CSS color.
Chapter 6: Advanced Programming Topics: Canvas and Video
137
In the following example, a linear gradient is added to a square box on the canvas. The gradient starts on
the left side, transitions to blue, and ends on the right in red. Here is the code for the entire HTML page:
???http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd???>


Draw Gradient
user-scalable=0;???>