Chapter 4. RENDERING TECHNIQUES
What we'll cover in this chapter:
Colors in Flash
The drawing API
Color transforms
Filters
Bitmap control
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 BitmapData
class.
You'll be working with a lot of colors in this chapter, so let's cover that subject first.
Colors in Flash
In Flash, colors ...
Get Foundation ActionScript 3.0 Animation: Making Things Move! 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.