forked from: Perlin Noiseを使ったランダム模様
円を敷き詰める
@author shmdmoto
/**
* Copyright argon ( http://wonderfl.net/user/argon )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/8Gjt
*/
// forked from shmdmoto's Perlin Noiseを使ったランダム模様
package
{
import frocessing.display.F5MovieClip2D;
/**
* 円を敷き詰める
* @author shmdmoto
*/
public class GraphicExample extends F5MovieClip2D
{
public function setup() : void
{
/*var x: int, y:int;
var noiseScale:Number = 0.05;
var noiseVal:Number;
noFill();
for(y=0; y <= 465; y++) {
for(x=0; x <= 465; x++) {
noiseVal= noise(x*noiseScale, y*noiseScale);
stroke(noiseVal*255);
point(x, y);
}
}*/
var noiseVal:Number;
for(var i:int=0; i<=465; i++){
for(var j:int=0; j<=464; j++){
noiseVal=noise(i*Math.random()/100,j*(i/500));
stroke(noiseVal*255);
point(i,j);
}
}
}
}
}