forked from: GREEN
@author SPANVEGA // CHRISTIAN
/**
* Copyright MMMMMonchi ( http://wonderfl.net/user/MMMMMonchi )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/fWWD
*/
// forked from christian's GREEN
package
{
import flash.geom.*;
import flash.filters.*;
import flash.display.*;
import flash.events.Event;
import flash.utils.getTimer;
/** @author SPANVEGA // CHRISTIAN **/
[ SWF (width = '465', height = '465', backgroundColor = '0x000ffff0', frameRate = '25')]
public class GREEN extends Sprite
{
private var s : BitmapData, e : BitmapData = new BitmapData (300, 465, true, 0x00);
private var c : ColorTransform = new ColorTransform (1, 0.99999, 2, 1);
private var b : BlurFilter = new BlurFilter (1.5, 1.5, 10);
private var o : Array = [new Point (), new Point ()];
private var r : uint = Math.random () * 0xF0000F;
private var t : Number;
public function GREEN ()
{
Wonderfl.disable_capture ();
stage.scaleMode = 'noScale';
graphics.beginFill (0, 1);
graphics.drawRect (0, 0, stage.stageWidth, stage.stageHeight);
addChild (new Bitmap (s = e.clone ()));
stage.addEventListener (Event.ENTER_FRAME, function () : void
{
t = getTimer ();
o[1].x =- (o[0].x = Math.sin (t * 0.00005) * 250);
o[1].y =- (o[0].y = Math.cos (t * 0.00005) * 250);
e.perlinNoise (200, 200, 2, r, true, true, 2, false, o);
e.threshold (e, e.rect, e.rect.topLeft, '!=', 0xFF008000, 0x0000dd00);
e.applyFilter (e, e.rect, e.rect.topLeft, b);
e.draw (e, null, null, BlendMode.ADD);
s.colorTransform (s.rect, c);
s.copyPixels (e, e.rect, e.rect.topLeft, null, null, true);
});
}
}
}