forked from: 半透明な円を敷き詰める

by chiori175 forked from 半透明な円を敷き詰める (diff: 3)
半透明な円を敷き詰める

円を敷き詰める
♥0 | Line 20 | Modified 2011-11-14 16:27:54 | MIT License
play

ActionScript3 source code

/**
 * Copyright chiori175 ( http://wonderfl.net/user/chiori175 )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/x8xv
 */

// forked from lenonsun's 半透明な円を敷き詰める
// 半透明な円を敷き詰める
package 
{
    import frocessing.display.F5MovieClip2D;
    /**
     * 円を敷き詰める
     */
    public class GraphicExample extends F5MovieClip2D
    {
        public function setup() : void
        {
            var i:int, j:int;
            rectMode(CORNER);
            colorMode(HSB,360,100,100,100);
            noStroke();
            for( i = 0 ; i <= 8 ; i++ ) {
                for( j = 0 ; j <= 8 ; j++ ) {
                   fill( random(120,150), 100, 100, 40);
                   rect(50 * j, 50 * i, 70, 70);
                }
            }
        }
    }
}