By Zevan | March 27, 2010
CLICK HERE TO COPY
Actionscript:
var offX:Number = 100;
var offY:Number = 300;
var scalarX:Number = 6;
var scalarY:Number = 200;
addEventListener(Event.ENTER_FRAME, onLoop);
function onLoop(evt:Event):void{
var r:Number = mouseY / 100;
var xn:Number = (mouseX - 100) / 650;
var xn1:Number = 0;
graphics.clear();
graphics.lineStyle(0,0);
for (var i:int = 0; i<100; i++){
xn1 = [...]
By Zevan | March 26, 2010
Been thinking about nonsense nodes recently so I created this with my QuickBox2D editor. I have yet to release the editor because its buggy, but it does work nicely for some things:
Have a look at the swf....
CLICK HERE TO COPY
Actionscript:
import com.actionsnippet.qbox.*;
stage.quality="medium";
var sim:QuickBox2D = new QuickBox2D(this, {gravityY:0.2});
sim.setDefault({fillColor:0xEFEFEF, fillAlpha:0.5, lineColor:0x666666});
var auto4:QuickObject = sim.addBox({x:9.33, y:4.67, width:1.33, height:1.33, angle: [...]
By Zevan | March 22, 2010
I was messing with Catumull Rom spline code from awhile back and this this came out:
CLICK HERE TO COPY
Actionscript:
[SWF(width = 500, height= 500)]
var pnts:Array = new Array();
// make 8 control points
for (var i:int = 0; i<8; i++){
pnts.push(dot(50 + Math.random() * 80 * i, Math.random()*(stage.stageHeight-40)+20));
}
addEventListener(Event.ENTER_FRAME, onLoop);
function onLoop(evt:Event):void {
graphics.clear();
graphics.lineStyle(0,0);
[...]
By Zevan | March 20, 2010
We're still working on this long term project for medialab prado in madrid. Here is a camera test from today. It uses frame differencing and places names of colors on the areas of motion.
Click here to view the swf file... make sure to move around a bit in front of your web-cam.