forked from: flash on 2009-10-19
forked from flash on 2009-10-19 (diff: 8)
ActionScript3 source code
/**
* Copyright yabuchany ( http://wonderfl.net/user/yabuchany )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/z3gz
*/
// forked from yabuchany's flash on 2009-10-19
package {
import frocessing.display.*;
public class Main extends F5MovieClip2DBmp{
public function Main() {
super();
}
public function setup():void {
noStroke();
smooth();
fill(0);
var offset:Number = 50; // Y offset
var scaleVal = 35.0; // Scale value for the wave magnitude
var angleInc = PI/28.0; // Increment between the next angle
var angle:Number = 0;
for(var x:int = 0;x<=width;x+=5){
var y:int = offset+(sin(angle)*scaleVal);
rect(x,y,2,4);
angle += angleInc }
}
}
}
