flash on 2009-8-9
♥0 |
Line 27 |
Modified 2009-08-10 00:04:57 |
MIT License
archived:2017-03-20 13:01:51
ActionScript3 source code
/**
* Copyright toyoshim ( http://wonderfl.net/user/toyoshim )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/9mOC
*/
package {
import frocessing.display.*;
[SWF(width="320", height="240", frameRate="10")]
public class FrocessingSample extends F5MovieClip2D {
private var screen_width:Number = 320;
private var screen_height:Number = 240;
private var factor:Number = 1.0;
public function FrocessingSample() {
super();
}
public function setup():void {
size( screen_width, screen_height );
background( 0 );
}
public function draw():void {
for (var y:int = 0; y < screen_height; y++) {
for (var x:int = 0; x < screen_width; x++) {
var fx:Number = x * factor;
var fy:Number = y * factor;
stroke(fx*fx+fy*fy & 255);
point(x, y);
}
}
factor *= 1.01;
}
}
}