O'Reilly logo

Foundation ActionScript 3.0 Animation: Making Things Move! by Keith Peters

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required