Accessibility

Flash Article

 

Varicose-g: High-Performance Graphics in Flash 8


Grant Skinner

Grant Skinner

CEO and chief architect
gskinner.com

Table of Contents

Created:
12 September 2005
User Level:
Advanced

This article is part of a series of articles on new Flash 8 features written by the staff of gskinner.com, a Flash development and consulting company working with leading new media agencies and progressive corporate clients to create cutting-edge applications, games and, multimedia pieces. You can learn more by visiting gskinner.com or gskinner.com/blog/.

Early this year, I was inspired to create an experimental piece called varicose-g. Varicose-g uses a simple branching algorithm paired with the drawing API to draw an organic vein network. In Flash Player 7, the experiment ran slowly, and I was forced to dynamically clear older veins to reduce the graphic compositing overhead. This limited the generative quality of the experiment and reduced the complexity of the veins I could draw.

With the release of Flash Player 8, I was able to make a number of updates that significantly increased the performance, complexity, and visual interest of the piece. Check it out (requires Flash Player 8):


To view this content, you need the latest version of the Macromedia Flash Player.
Download the free Macromedia Flash Player now.

Get Macromedia Flash Player

This article focuses on those changes, including the use of a custom bitmap caching routine, blurring remnant veins, and applying color adjustments. You can download the source code for this experiment in the Requirements section.

Requirements

To complete this tutorial you will need to install the following software and files:

Macromedia Flash 8 Professional

Macromedia Flash Player 8

Tutorials and sample files:

Prerequisite Knowledge

Basic understanding of programming with ActionScript 2 and the drawing API.

About the author

Grant Skinner is the CEO and chief architect of gskinner.com, a Flash development and consulting company. He works with leading new media agencies and progressive corporate clients to create cutting-edge applications, games, and multimedia pieces. His expertise in fusing coding with interface design, usability, marketing, and business logic has garnered him international acclaim and resulted in a number of prestigious industry awards, including Best Canadian Developer at FITC 2005. Grant maintains an active blog at gskinner.com/blog/ and an exhibit of his experimental work at incomplet.org.