frocessing - lesson 3

by mathatelle forked from frocessing - lesson 2 (diff: 17)
ランダムな大きさの円を描く
♥1 | Line 13 | Modified 2009-09-12 23:16:51 | MIT License
play

ActionScript3 source code

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

// forked from mathatelle's frocessing - lesson 2
// forked from mathatelle's frocessing - lesson 1
// ランダムな大きさの円を描く
package {
    import frocessing.display.*;
    public class FrocessingLesson extends F5MovieClip2DBmp{
    
        public function setup():void {
            //noLoop();
        }
            
        public function draw():void {
            var x:Number = random(width);
            var y:Number = random(height);
            var diameter:Number = random(6,30);
            ellipse(x, y, diameter, diameter);
        }
            
    }
}