This is a fun one I made tonight in about 2 hours. It will shift through your standard color spectrum and is configurable. I packaged the whole thing into a small class that you can call dynamically to create different realms of “fractal” regions.
I put fractals into quotes because technically it is not all the same shape in different scales and translations… but it is similar to the effects you might see.
It starts with a standard of 3 points, but you can press the Keyboard UP key to add a point, and the DOWN key to remove one. It makes for fun experiments cause the originate at Point(0,0). CLICK the stage to get a fresh canvas. Other than that… Here you go:
EDIT 11 / 4 / 2008 ____________________________________
Key Commands:
Up Arrow: Add Point
Down Arrrow: Remove Point (minimum 2)
Left Arrow: Pause Output
Right Arrow: Relocate start point. Start Output
Letter b: Blur Filter On/Off
Letter s: Scroll Bitmap On/Off
Numpad 1: Slow down catch-up speed
Numpad 0: Speed up catch-up speed
Mouse
Click: Clear Stage
Control+Click: Drag / Reposition Graphics
Use the drag canvas in combination with Pause output to relocate yourself.
Filters are OFF by default. You must press “b” or “s” to turn them on to start.
What is coming? ________________________
- Motion tracking : record and replay
- Print to JPEG / GIF : save it!
- Change background / select colors
- Print to AI Vector action (no promises on this one)
New Source _______________________
Includes 3 class files.
- Download Source
Here is the code used to create this example ( without class ):
import com.kenefick.color.*
// Create a drawing board for these fractals...
var bData:BitmapData = new BitmapData( 800,600, false, 0x0 );
var bmp:Bitmap = new Bitmap( bData );
addChild( bmp );
// Setup The Fractal
var fract = new fractal( bData, this );
fractal_input.init(fract, stage);
fractal_effects.init(fract);
fract.newFractal( 3 /* initial points */,
20 /* catch-up speed */,
true /* use color shifting */);
fract.start();