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: FrocessingSample

see http://gihyo.jp/design/feature/01/frocessing/0001
水彩がっぽく
Get Adobe Flash player
by yabuchany 28 Oct 2009
/**
 * Copyright yabuchany ( http://wonderfl.net/user/yabuchany )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/AjQq
 */

// forked from nutsu's FrocessingSample
//see http://gihyo.jp/design/feature/01/frocessing/0001
//水彩がっぽく
package {
	import frocessing.display.*;
	
	[SWF(width="465", height="465", frameRate="60")]
	public class FrocessingSample extends F5MovieClip2DBmp
	{
		private var stage_width:Number  = 465;
		private var stage_height:Number = 465;
		private var n:int    = 5;
		private var t:Number = 0;
		
		public function FrocessingSample ()
		{
			super();
		}
		
		public function setup():void
		{
			size( stage_width, stage_height );
			background( 255 );
			noFill();
			
		}
		
		public function draw():void
		{
			
			var s:Number =second();
			strokeWeight(100);
			//stroke( (s+545)*80, 0.01,mouseY );
			stroke( (s+545)*80, 0.01);
			if( isMousePressed )
				background( 255 );
			
			translate( 0, stage_height/2 );
			
			beginShape();
			curveVertex( -100, 0 );
			for( var i:int=0; i<=s; i++ ) {
				var xx:Number = i * stage_width / s;
				var yy:Number = noise( i * 0.25, t ) * 300 - 150;
				curveVertex( xx, yy );
			}
			curveVertex( stage_width+100, 0 );
			endShape();
			
			t+=0.01;
		}
	}
}