In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

forked from: Tile of gtLine Pattern

目標 : http://www.flickr.com/photos/birdbrid/3495765388/
Get Adobe Flash player
by paq 13 May 2009
// forked from ahchang's Tile of gtLine Pattern
// forked from ahchang's forked from: color line
// forked from uranodai's color line
/**
* 目標 : http://www.flickr.com/photos/birdbrid/3495765388/
**/

package {
    import flash.display.Sprite;
    
    [SWF(width=600, height=600, frameRate=30, backgroundColor=0x000000)]
    
    public class CircleNest extends Sprite {
        private var cx:int;
        private var cy:int;
        private var r:int=100;
        
        public function CircleNest() {
            init();
        }
        
        private function init():void {
            for (var i:uint=0; i<6; i++) {
                cx = i * r;
                
                for (var j:uint=0; j<6; j++) {
                    cy = j * r;
                    var line:Sprite = new gtLine(cx, cy, r);
                    addChild(line);
                }
            }
            for (i=0; i<6; i++) {
                cx = i * r;
                
                for (j=0; j<6; j++) {
                    cy = j * r;
                    var line:Sprite = new gtLine2(cx, cy, r);
                    addChild(line);
                }
            }
        }
    }
}

import flash.display.Sprite;

class gtLine extends Sprite
{
    public function gtLine(x:int, y:int, r:uint=100)
    {
        var color:Number;
        var range_y:int = 10;
        var fluc_y:Number;
        
        graphics.beginFill(0xFFFFFF);
        graphics.drawRect(0, 0, r, r);
        graphics.endFill();
        this.x = x;
        this.y = y;
        
        for(var y:int=0; y<=100; y+=2)
        {
            color = Math.random() * 0xff000000;
            graphics.lineStyle(1, color, 1);
            fluc_y = 0;
            fluc_y += Math.random()*range_y*2-range_y;
            graphics.moveTo(0, y+fluc_y);
            
            for(var x:int=5; x<=100; x+=5)
            {
                fluc_y += Math.random()*range_y*2-range_y;
                graphics.lineTo(x, y+fluc_y);
                //rotation = 45;
            }
        }
    }
}

class gtLine2 extends Sprite
{
    public function gtLine2(x:int, y:int, r:uint=100)
    {
        var color:Number;
        var range_y:int = 10;
        var fluc_y:Number;
        
        blendMode = "multiply";
        this.x = x;
        this.y = y;
        
        for(var y:int=0; y<=100; y+=5)
        {
            color = Math.random() * 0xff000000;
            graphics.lineStyle(1, color, 1);
            fluc_y = 0;
            fluc_y += Math.random()*range_y*2-range_y;
            graphics.moveTo(0, y+fluc_y);
            
            for(var x:int=5; x<=100; x+=5)
            {
                fluc_y += Math.random()*range_y*2-range_y;
                graphics.lineTo(x, y+fluc_y);
                //rotation = 45;
            }
        }
    }
}