forked from: Perlin Noiseを使ったランダム模様
forked from Perlin Noiseを使ったランダム模様 (diff: 1)
ActionScript3 source code
/**
* Copyright nan05aur ( http://wonderfl.net/user/nan05aur )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/uGRJ
*/
// 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);
}
}
}
}
}