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: 文字とか絵とかを用意しておいて、出力(ついでに軽量化)

http://wonderfl.net/code/7d6ad7eb9587215aa84b49e210a201ee93b3a8ea
* で座標データを作成してarr7の配列につっこむと絵がかけるー。
* (2010-10-09修正:上のURL間違ってたorz)
* 寅って書いてみた→
/**
 * Copyright nemu90kWw ( http://wonderfl.net/user/nemu90kWw )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/klkb
 */

// forked from s26's 文字とか絵とかを用意しておいて、出力
// forked from nengafl's nengafl
/**
* http://wonderfl.net/code/7d6ad7eb9587215aa84b49e210a201ee93b3a8ea
* で座標データを作成してarr7の配列につっこむと絵がかけるー。
* (2010-10-09修正:上のURL間違ってたorz)
* 寅って書いてみた→
*/
package  
{
	import flash.display.*;
	import flash.events.Event;
	import flash.filters.BlurFilter;
	import flash.geom.Matrix;
	
	public class nenga extends Sprite{

		private var arr7:Array = [219,310,218,310,216,310,207,310,196,310,177,309,163,308,151,305,141,302,133,298,125,292,115,282,105,272,99,264,95,257,92,249,90,239,89,227,90,213,91,204,96,191,102,179,109,170,117,162,124,155,131,150,137,146,142,143,146,141,149,140,151,139,152,139,152,139,152,139,152,139,152,139,152,133,151,128,149,120,147,115,145,110,144,106,143,104,143,103,143,102,143,102,143,102,143,102,143,102,144,106,145,110,145,113,150,125,153,135,156,142,159,151,164,162,167,168,171,177,174,183,176,188,178,192,179,194,179,195,179,195,179,195,179,195,180,197,182,200,183,202,184,203,184,203,184,203,184,203,184,203,184,203,184,203,184,202,183,199,181,195,179,190,176,183,173,178,171,173,169,169,167,162,166,158,164,154,162,150,159,146,157,141,155,137,152,132,149,128,145,122,143,118,141,114,140,111,140,109,140,108,140,108,140,106,140,105,140,104,140,104,140,104,140,104,140,104,140,104,140,104,142,109,145,114,147,120,149,125,151,129,152,131,153,134,154,136,154,138,154,139,154,140,154,140,154,140,154,140,154,140,154,140,155,140,159,139,161,138,169,136,177,135,184,135,189,135,195,135,199,135,203,135,207,135,214,135,220,135,225,135,230,135,236,135,241,135,245,135,250,135,255,135,259,135,264,135,268,136,271,136,272,136,273,136,273,136,273,136,273,135,272,132,270,128,268,123,267,119,265,116,263,113,262,110,261,109,261,108,260,107,258,105,257,104,257,103,257,103,257,103,257,103,257,103,257,103,257,103,257,103,259,105,262,108,265,112,267,116,269,120,271,123,273,126,275,129,276,132,277,135,278,138,279,141,280,145,282,149,283,153,284,157,285,161,287,165,288,169,289,173,290,177,292,182,294,188,296,193,298,198,299,201,300,202,300,203,300,203,300,203,300,203,300,203,300,203,296,187,292,177,289,170,286,164,284,160,282,156,281,153,280,150,279,147,278,144,277,142,276,140,276,139,275,138,274,135,274,134,274,133,274,133,274,133,274,133,274,133,274,133,275,133,277,133,280,133,283,133,286,133,288,134,291,134,294,135,297,135,301,136,303,136,304,136,305,136,305,136,305,136,305,136,305,136,305,136,305,136,305,136,308,138,311,140,314,142,317,145,321,149,324,153,328,158,330,162,332,166,334,169,336,173,338,176,340,180,342,186,344,193,346,198,348,204,349,210,350,216,350,222,350,230,350,236,350,242,350,247,349,252,348,255,346,259,344,264,342,268,340,272,335,277,331,282,328,286,325,289,321,292,316,295,312,297,307,300,302,303,297,305,291,307,285,309,279,310,274,311,269,311,264,311,259,311,254,311,248,311,243,311,238,311,234,311,230,311,226,311,223,310,220,309,217,307,214,305,211,302,207,299,204,296,200,293,196,289,193,284,190,280,187,276,185,272,183,268,181,264,179,260,177,256,176,252,175,249,175,246,175,244,175,243,175,243,175,243,175,243,175,243,175,243,175,243,177,243,181,243,186,242,192,242,198,241,205,241,212,240,220,240,226,240,235,240,243,240,250,240,255,240,260,240,264,240,268,240,272,240,276,240,280,240,284,240,287,240,288,240,289,240,290,240,291,240,292,240,292,240,292,240,292,240,292,240,293,243,294,246,294,250,294,254,294,259,293,264,292,269,291,274,289,278,287,282,286,285,284,288,281,291,278,295,275,298,272,301,269,303,266,305,263,306,259,308,256,309,253,310,251,310,250,311,249,311,248,311,246,311,245,311,244,311,244,311,243,311,242,311,242,311,242,312,241,312,240,312,240,312,240,312,240,312,239,312,238,312,237,312,237,312,236,312,235,312,234,312,234,312,234,312,234,312,234,312,234,312,234,312,234,312,234,312,234,312,234,312,234,312,234,312,234,312,234,312,233,313,230,313,227,313,223,313,219,313,216,314,213,314,211,314,208,315,203,317,199,319,194,323,189,328,183,334,177,341,170,349,162,357,155,365,150,371,146,375,141,379,136,383,132,386,127,389,122,392,116,394,110,396,106,397,104,398,101,399,96,398,92,396,89,394,87,391,86,388,85,385,85,381,86,378,88,376,90,375,94,373,98,372,102,371,105,371,109,371,111,371,115,372,118,373,120,373,123,374,126,376,128,377,129,378,130,379,130,382,131,383,131,384,131,384,131,384,131,384,131,384,131,384,131,384,131,384,131,384,131,384,131,384,131,384,131,384,131,384,131,384,131,384,131,384,131,384,131,384,132,384,134,384,136,383,139,381,143,376,147,372,150,368,153,363,156,358,160,353,164,348,168,342,172,337,175,333,177,330,178,328,179,327,179,327,179,327,179,327,179,330,177,336,175,343,173,350,170,363,168,374,165,387,162,398,159,408,156,418,154,425,153,432,152,439,151,448,151,453,151,455,151,456,151,457,151,457,151,457,151,457,151,457,151,456,153,446,156,433,158,424,160,417,162,410,163,405,165,398,167,393,168,387,170,382,172,376,174,368,176,358,178,348,180,339,182,334,184,328,186,323,187,321,187,320,187,319,187,319,187,319,187,319,187,319,187,319,187,319,187,319,187,319,187,319,187,319,187,319,187,319,188,317,189,315,190,314,192,314,195,313,197,312,198,311,199,311,202,310,210,310,214,310,217,310,220,310,223,311,225,313,227,318,230,324,235,332,239,338,241,341,242,343,242,344,242,344,242,344,242,344,244,343,248,338,252,333,255,328,257,323,259,319,260,316,262,313,263,311,264,310,264,309,264,309,264,309,265,310,266,315,269,321,272,328,275,336,278,344,280,351,283,360,286,367,289,376,291,384,293,392,295,400,297,409,299,417,301,425,303,433,304,440,305,445,306,449,306,451,306,452,306,453,306,453,306,453,306,453,307,455,308,456,308,457,308,457,308,457,308,457,308,457,308,457,307,457,307,457,302,457,289,456,281,454,283,448,286,445,288,442,284,438,273,430,267,426,270,422,274,419,268,417,264,415,268,410,272,406,273,404,271,402,267,398,269,395,275,393,280,391,279,390,274,388,271,385,274,380,279,377,277,375,270,373,263,371,260,370,262,369,266,367,267,363,263,358,260,355,260,352,263,349,267,347,269,345,266,342,264,338,263,331,265,327,267,325,268,324,265,321,262,318,261,316,261,315,261,315,261,315,262,315,263,315,263,315,263,315,263,315,263,315,263,315,264,315,267,315,274,317,283,319,292,320,300,320,307,320,315,320,322,320,330,320,337,319,343,318,349,316,355,314,362,310,368,304,374,297,379,291,383,285,387,279,389,273,390,267,391,261,392,254,392,249,392,247,392,246,392,245,388,244,385,243,381,243,377,243,372,246,368,249,366,253,365,258,367,262,370,264,373,266,377,267,381,267,383,267,385,267,386,267,387,266,388,264,388,263,389,262,390,260,390,256,390,254,390,253,390,251,389,250,389,249,388,248,388,247,388,247,388,247,388,246,387,245,387,244,387,244,387,244,387,244,387,244,387,244,387,244,387,244,387,244,387,244,387,244,387,244,387,244,388,240,389,232,389,223,389,217,389,207,389,193,389,177,389,165,389,155,389,147,389,142,389,139,389,137,389,136,389,136,389,133,389,127,389,124,389,122,389,121,387,121,385,121,382,121,378,120,374,118,369,113,364,106,361,100,359,96,358,94,361,89,365,85,370,81,375,77,380,75,386,76,392,78,397,79,401,82,404,85,407,90,408,94,409,98,408,104,406,108,403,112,399,116,393,119,388,121,385,123,381,124,377,127,373,132,370,139,368,146,369,155,373,163,377,170,382,174,388,176,394,174,397,170,399,161,400,148,400,137,398,130,396,125,394,122,393,121,392,120,391,120,396,124,402,129,410,135,416,139,421,141,425,142,429,142,434,140,439,135,443,130,444,123,443,117,439,113,433,111,426,110,419,109,414,109,409,109,406,109,405,109,406,109,410,109,417,109,424,109,434,106,445,98,450,93,453,90,452,84,450,81,447,78,442,76,436,75,428,76,418,80,412,82,409,83,407,84,406,84,408,84,415,76,423,59,427,47,429,41,427,38,424,36,420,35,414,37,405,46,397,55,392,64,390,69,389,72,388,73,388,74,388,69,380,47,373,32,368,25,364,22,359,25,355,32,353,41,353,52,356,64,360,72,364,78,366,81,367,83,366,83,362,78,355,74,346,71,337,71,328,73,320,78,314,83,311,88,315,92,322,95,331,98,338,99,345,100,351,100,355,100,358,100,359,101,357,102,352,106,342,116,337,124,334,135,335,142,339,146,343,148,347,148,352,144,357,139,361,133,368,124,372,119,374,117,375,116,375,115,375,115,375,115,375,115,375,115,375,115,375,115,375,115,375,115,375,115]
		private var num:int = 0
		
		private var buffer:BitmapData = new BitmapData(465, 465, false, 0x000000);
		private var screen:Bitmap = new Bitmap(buffer);
		
		public function nenga() {
			Wonderfl.capture_delay(60);
			/*
			var _b:Sprite = new Sprite();
			_b.graphics.beginFill(0x000000, 1);
			_b.graphics.drawRect(0, 0, stage.stageWidth, stage.stageHeight);
			_b.graphics.endFill();
			addChild(_b)
			*/
			addChild(screen);
			stage.addEventListener(Event.ENTER_FRAME, draw_circle);
		}
		
		private function draw_circle(e:Event):void{
			var circle:Shape=new Shape();
			circle.graphics.beginFill(0xFFFFFF * Math.random());
			circle.graphics.drawCircle(0, 0, 5*Math.random()+5);
			circle.graphics.endFill();
			//circle.blendMode=BlendMode.ADD;
			//circle.x=arr7[num*2]
			//circle.y=arr7[num*2+1]
			circle.filters=[new BlurFilter(10, 10, 1)];
			//addChild(circle);
			var matrix:Matrix = new Matrix();
			matrix.translate(arr7[num*2], arr7[num*2+1]);
			buffer.draw(circle, matrix, null, BlendMode.ADD);
			num++;
		}
		
	}

}