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 164 | Next

Richard Wagner

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

The animate() function clears the canvas, moves the orientation point, and
draws a filled circle. The p variable is then incremented by one before repeating.
Canvas in Action
Several open source libraries that use canvas programming to create sophisticated charts and image
effects, such as reflections, are available on the Web. Two particularly noteworthy libraries are the
PlotKit and Reflection.js. PlotKit (see Figure 6-15 ) is a JavaScript Chart Plotting library (available at
www.liquidx.net/plotkit ), and Reflection.js enables you to add reflections to your images (available
at cow.neondragon.net/stuff/reflection ). The Reflection.js library uses canvas to render the
reflection, but allows you to use it simply by adding a reflect class to an image.
Working with Video
If you are creating an application that incorporates multimedia, certainly one of the great benefits of
developing for iPhone and iPod touch is their strong video and audio support. However, in order to take
full advantage of streaming movies over Wi-Fi and EDGE networks, there are several issues that you
need to keep in mind as you prepare your video for Internet usage.
Preparing iPhone/iPod touch??“Friendly Video
iPhone and iPod touch support a variety of video formats, including H.


Pages:
152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176