forked from: forked from: forked from: 円を縦横に並べる

by hubukihiroto189 forked from forked from: forked from: 円を縦横に並べる (diff: 4)
円を縦横に並べる

円を敷き詰める
@author shmdmoto
♥0 | Line 18 | Modified 2011-11-14 15:48:17 | MIT License
play

ActionScript3 source code

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

// forked from chiori175's forked from: forked from: 円を縦横に並べる
// forked from hubukihiroto189's forked from: 円を縦横に並べる
// forked from lenonsun's 円を縦横に並べる
// 円を縦横に並べる
package 
{
    import frocessing.display.F5MovieClip2D;
    /**
     * 円を敷き詰める
     * @author shmdmoto
     */
    public class GraphicExample extends F5MovieClip2D
    {
        public function setup() : void
        {
            var i:int, j:int;
            ellipseMode(CORNER);
            for( i = 0 ; i <= 16 ; i++ ) {
                for( j = 0 ; j <= 8-i ; j++ ) {
                    fill(random(158),random(255),random(255));
                    rect(100 * j, 15 * i, 50, 40);
                }
            }
        }
    }
}