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ノイズで色相を変化させる

HSBモードで画面を1ピクセルのランダムな色相の点で埋め尽くします.
/**
 * Copyright shmdmoto ( http://wonderfl.net/user/shmdmoto )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/swTX
 */

package
{ 
    import frocessing.display.F5MovieClip2D;
    /**
     * 色相をランダムに変化
     * @author shmdmoto
     */
    public class GraphicExample extends F5MovieClip2D
    {
        public function setup() : void
        {
            var x:Number, y:Number;
            var noiseScale:Number = 0.01;
            var noiseVal:Number;
            colorMode(HSB, 360, 100, 100);
            for( y = 0 ; y <= 465 ; y++ ) {
                for( x = 0 ; x <= 465 ; x++ ) {
                    noiseVal= noise(x*noiseScale, y*noiseScale);
                    stroke( random(360*noiseVal), 100, 100 );
                    point( x, y );
                }
            }
        }
    }
}