Koch curve layout for Hype Framework

HYPE Framework Koch Curve layout class | download
The following code creates the simple static layout above.
import hype.extended.layout.KochCurveLayout;
import hype.framework.core.ObjectPool;
var myX:Number = Math.floor(stage.stageWidth/2);
var myY:Number = Math.floor(stage.stageHeight/2);
var layout:KochCurveLayout = new KochCurveLayout(0, myY);
var pool:ObjectPool = new ObjectPool(MyCircle, layout.getTotalPoints());
pool.onRequestObject = function(clip) {
layout.applyLayout(clip);
addChild(clip);
}
pool.requestAll();
0 Responses to Koch curve layout for Hype Framework
Leave a Reply