Author Archives: Zevan

Sierpiński Glitch Texture #2

CLICK HERE TO COPY
Actionscript:

[SWF(frameRate=60, backgroundColor=0x000000, width=500, height=500)]

var canvas:BitmapData = new BitmapData(500,500,false, 0x000000);

addChild(new Bitmap(canvas));

var clone:BitmapData = new BitmapData(500,500,false, 0x000000);

var canvasRect:Rectangle = canvas.rect;

var w:int = canvas.width;

var w2:Number = 1/w;

var w10:Number = 1/(w * 80);

var convert:Number = Math.PI/180;

var size:int = canvas.width * canvas.height;

var pix:Vector.<uint> = new Vector.<uint>(size, true);

var gray:ColorMatrixFilter = new ColorMatrixFilter([1, 0.55, 0.55, 0,0,0.55, 0.9, 0.55, 0,0,0.55, [...]

Posted in BitmapData, Operators, Vector, pixel manipulation | Tagged , , | Leave a comment

Sierpiński Glitch Texture #1

CLICK HERE TO COPY
Actionscript:

[SWF(frameRate=60, backgroundColor=0x000000, width=500, height=500)]

var canvas:BitmapData = new BitmapData(500,500,false, 0x000000);

addChild(new Bitmap(canvas));

var clone:BitmapData = new BitmapData(500,500,false, 0x000000);

var canvasRect:Rectangle = canvas.rect;

var w:int = canvas.width;

var w2:Number = 1/w;

var w10:Number = 1/(w * 80);

var convert:Number = Math.PI/180;

var size:int = canvas.width * canvas.height;

var pix:Vector.<uint> = new Vector.<uint>(size, true);

var gray:ColorMatrixFilter = new ColorMatrixFilter([1, 0.55, 0.55, 0,0,0.55, 0.9, 0.55, 0,0,0.55, [...]

Posted in Uncategorized | Tagged , , | 4 Comments

Interesting Texture #3 (animated)

CLICK HERE TO COPY
Actionscript:

[SWF(frameRate=60, backgroundColor=0x000000, width=500, height=500)]

var canvas:BitmapData = new BitmapData(500,500,false, 0x000000);

addChild(new Bitmap(canvas));

var clone:BitmapData = new BitmapData(500,500,false, 0x000000);

var canvasRect:Rectangle = canvas.rect;

var w:int = canvas.width;

var w2:Number = 1/w;

var w10:Number = 1/(w * 80);

var convert:Number = Math.PI/180;

var size:int = canvas.width * canvas.height;

var pix:Vector.<uint> = new Vector.<uint>(size, true);

var gray:ColorMatrixFilter = new ColorMatrixFilter([1, 0.55, 0.55, 0,0,0.55, 0.9, 0.55, 0,0,0.55, [...]

Posted in BitmapData, Vector, color, pixel manipulation | Tagged , , | Leave a comment

QuickBox2D Unicycler

CLICK HERE TO COPY
Actionscript:

import com.actionsnippet.qbox.*;

import Box2D.Common.Math.*;

import Box2D.Dynamics.Joints.*;

[SWF (backgroundColor=0x000000, width=700, height=600, frameRate=60)]

var sim:QuickBox2D = new QuickBox2D(this, {debug:false,gravityY:10, renderJoints:false});

sim.setDefault({fillColor:0xCC0000,lineAlpha:0});

sim.createStageWalls();

 

for (var i:int = 0; i<20; i++){

    sim.addCircle({x:1+i * 0.8, y:1, radius:0.1+Math.random()*0.1, restitution:0.3});

}

 

sim.setDefault({fillColor:0xEFEFEF, fillAlpha:0.5, lineColor:0xFFFFFF, groupIndex:-2});

var ancA:QuickObject = sim.addCircle({x:20, y:12, radius:0.5, density:0, skin:"none"});

var ancB:QuickObject = sim.addCircle({x:20, y:2, radius:0.5, density:0, skin:"none"});

var head:QuickObject = sim.addCircle({x:0, y:-0.6, radius:0.5});

var neck:QuickObject = sim.addBox({x:0, [...]

Posted in Box2D, QuickBox2D, motion | Tagged , , , , | 9 Comments