forked from: キャンバスの下半分にランダムに円を配置

by ganyan forked from キャンバスの左半分にランダムに円を配置 (diff: 2)
♥0 | Line 20 | Modified 2011-04-03 15:53:34 | MIT License
play

ActionScript3 source code

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

// forked from shmdmoto's キャンバスの左半分にランダムに円を配置
package 
{
    import frocessing.display.F5MovieClip2D;
    /**
     * 円をキャンバスの左半分にランダムに配置する
     * @author shmdmoto
     */
    public class GraphicExample extends F5MovieClip2D
    {
        public function setup() : void
        {
            var i:int;
            var x:Number;
            var y:Number;
            for( i = 1 ; i <=1000 ; i++ ) {
                x = random( 465 );
                y = random( 465 );
                if( y > 465/2  ) {
                    ellipse( x, y, 20, 20);
                }
            }
        }
    }
}