What we'll cover in this chapter:
Colors in Flash
The drawing API
Important formulas in this chapter
The graphics in the sample programs in the book so far have been drawn using a few simple drawing commands, and I've alluded to this mythical "drawing API" a few times. But for the most part I've just thrown the code at you without much explanation.
In this chapter, I'm going to dive into visual content creation in ActionScript. Specifically, I'm going to go over color in ActionScript and the drawing API, the
ColorTransform class, filters, and the
You'll be working with a lot of colors in this chapter, so let's cover that subject first.
In Flash, colors ...