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

Perlin Noiseを使ったランダム模様

Frocessing のPerlinNoiseのサンプルです
/**
 * Copyright shmdmoto ( http://wonderfl.net/user/shmdmoto )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/5OXU
 */

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);
                 }
            }
        }
    }
}