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

flash on 2011-1-28

Get Adobe Flash player
by swndfl 28 Jan 2011
/**
 * Copyright swndfl ( http://wonderfl.net/user/swndfl )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/nT1T
 */

package {

    import frocessing.display.F5MovieClip2D;

    public class Main extends F5MovieClip2D {
        // プロパティ
        private static var dots:uint = 30;
        private static var radian:Number = 2*Math.PI/dots;
        private var angle:uint = 0;
        private static var speed:uint = 1;

        // コンストラクタ
        public function Main() {
        }

        // メソッド
        public function setup():void {
            colorMode(HSV, dots, 1, 1);
            rectMode(CENTER);
            noStroke();
        }
        public function draw():void {
            translate(160, 160);
            rotate((angle - 90)*Math.PI/180);
            for (var n:uint = 0; n < dots; n++) {
                rotate(radian);
                fill(n, 1, 1);
                circle(120, 0, 10);
            }
            angle += speed;
        }

    }

}