Chapter 4: Using the drawing API
Although imported images and artwork are important, the functionality known as the drawing API, which allows you to draw lines and shapes in OpenFL, gives you the freedom to start an application with the computer equivalent of a blank canvas, on which you can create whatever images you wish. The ability to create your own graphics opens up broad possibilities for your applications. With the techniques covered here you can create a drawing program, make animated, interactive art, or programmatically create your own user interface elements, among many possibilities.
Section Contents
- Basics of the drawing API
- Understanding the Graphics class
- Drawing lines and curves
- Drawing shapes using built-in methods
- Creating gradient lines and ills
- Using the Math class with drawing methods
- Animating with the drawing API
- Advanced use of the drawing API