Author Archives: Zevan

Logistic Map Play

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 = [...]

Posted in Graphics, Math, misc | Tagged , , | 2 Comments

QuickBox2D Nodes

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: [...]

Posted in Uncategorized | 6 Comments

Catmull-Rom Error

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);

  [...]

Posted in Uncategorized | 4 Comments

Color Words Motion Capture

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.

Posted in Announcements, misc | Tagged , , , | 2 Comments