Painting with Particles
29/07/09
Painting with Particles is a mini Flash/ Actionscript 3 project I produced using the Flint Particle system. I came across Flint a few months ago because of its incredible smoke effects, and after a few tests I thought I would have a crack at producing something slightly different. The main reason behind creating a simple click/hold painting app was because of the interesting and unique effects you can create/ texturize with particles. Although this maybe not be evident from the examples I quickly put together below.

There a few little bugs with the build below and I’ve had to take a couple of features out for this post. The spray paint effect which followed the users mouse movement didn’t make the cut and I’m yet to get the color management right due to hex code to uint conversion issue. For once I haven’t really got much to say about Painting with Particles, other then have a Paint!
Flash is displayed here
Just a quick example of the actionscript code used to create a Fill emitter
public static function get fill():Emitter2D
{
var emitter:Emitter2D;
emitter = new Emitter2D();
emitter.counter = new Steady(10000);
emitter.addInitializer( new ColorInit(ComponentManager.colour1, ComponentManager.colour2) );
emitter.addInitializer( new Position( new DiscZone( new Point( AppConstants.APP_WIDTH/2, AppConstants.APP_HEIGHT/2), AppConstants.APP_WIDTH ) ) );
emitter.addAction( new BoundingBox(0, 0, AppConstants.APP_WIDTH, AppConstants.APP_HEIGHT ) );
return emitter;
}
Related links
- Flint Particle System blog
- Getting started with Flint Particle System
Tags: actionscript, as3, flash. flint particle system, flint, particle, particles
No comments