tracerstar

Lorenz attractor layout for the Hype Framework

HYPE Framework Lorenz Attractor layout class | download (v0.1)

The Lorenz Attractor class is unfinished. It needs updating to allow custom a,b,c values and x,y positioning, as well as randomising attributes

import hype.framework.rhythm.SimpleRhythm;
import hype.framework.core.TimeType;
import hype.framework.display.BitmapCanvas;
import hype.extended.rhythm.FilterCanvasRhythm;
import hype.extended.layout.LorenzAttractorLayout;

function moveClip(r:SimpleRhythm) {
	layout.applyLayout(clip);
}

var myWidth = stage.stageWidth;
var myHeight = stage.stageHeight;

var layout:LorenzAttractorLayout = new LorenzAttractorLayout('z');

var bmc:BitmapCanvas = new BitmapCanvas(myWidth, myHeight);
addChild(bmc);

var clipContainer:Sprite = new Sprite();
clipContainer.visible = false;
addChild(clipContainer);

var clip:MyCircle = new MyCircle();
clip.x = -100;
clip.y = -100;
clipContainer.addChild(clip);

var rhythm:SimpleRhythm = new SimpleRhythm(moveClip);
rhythm.start(TimeType.TIME, 50);

bmc.startCapture(clipContainer, true);

var blur:FilterCanvasRhythm = new FilterCanvasRhythm([new BlurFilter(1.5, 1.5, 1)], bmc);
blur.start(TimeType.TIME, 200);

0 Responses to Lorenz attractor layout for the Hype Framework

Leave a Reply