Chapter 5. Sound, Interactive Graphics and Camera
In this chapter you learn how to program your phone to record and play sounds and to use its built-in text-to-speech engine. You'll see how to use the camera to take photos, either manually or fully automatically. The photos can be manipulated in various ways, for example by scaling, rotating or imprinting text on them with the image-processing features of PyS60.
We spice up the chapter with some interactivity: we show how to access the keyboard keys in three different ways. To enable you to build visually appealing applications, we show how to draw text and basic graphics, such as squares and circles, to the screen, and use them as building blocks for more complex graphics. We also make some reference to 3D graphics and, at the end of the chapter, we build an action-packed mobile game.
This is useful knowledge for creating your own music players, camera applications, games and software that can visualize data in real-time. But even more, you may get some idea of how you could turn your mobile phone into an artistic tool.
We hope that this chapter will unleash your creativity!
Get Mobile Python: Rapid Prototyping of Applications on the Mobile Platform 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.