Flaxor Flash Demoscene 1k
/**
* Copyright Zahurdias.Calimero ( http://wonderfl.net/user/Zahurdias.Calimero )
* GNU General Public License, v3 ( http://www.gnu.org/licenses/quick-guide-gplv3.html )
* Downloaded from: http://wonderfl.net/c/x9XX
*/
//
// Flaxor (989bytes effect)
// by Mr.doob
//
// Thanks to Texel (http://www.romancortes.com/) and Forrest Briggs (http://laserpirate.com/flashblog/)
//
package
{
import flash.display.Bitmap;
import flash.display.BitmapData;
import flash.display.Sprite;
import flash.events.Event;
//[SWF(backgroundColor = "#000000", frameRate = "50")]
public class Main extends Sprite
{
public var t : int,canvas : BitmapData=new BitmapData(stage.stageWidth, stage.stageHeight, false);
public function Main()
{
addChild(new Bitmap(canvas));
addEventListener("enterFrame", l);
}
private function l(e:Event):void
{
for (var x:int = 0; x < stage.stageWidth; x++)
for (var y:int = 0; y < stage.stageHeight; y++)
canvas.setPixel(x, y, (x + t ^ y + t) * t);
t++;
}
}
}