forked from: F5GraphicsSample1

by hacker_szoe51ih forked from F5GraphicsSample1 (diff: 6)
♥0 | Line 19 | Modified 2010-06-03 23:15:06 | MIT License
play

ActionScript3 source code

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

// forked from nutsu's F5GraphicsSample1
package {
    
    import flash.display.Sprite;
    import frocessing.core.F5Graphics2D;
    import frocessing.core.F5C;
    
    [SWF(width=465,height=465,backgroundColor=0)]
    public class F5GraphicsSample1 extends Sprite{
        
        public function F5GraphicsSample1() {
            var fg:F5Graphics2D = new F5Graphics2D( graphics );
            fg.stroke( 0, 0 );
            fg.fill( 155, 132, 255, 0.5);
            fg.translate( 0, 0 );
            fg.rectMode( F5C.CENTER );
            for ( var i:int = 0; i < 1; i++ ) {
                fg.rect( 0, 0, 100, 100 );
                fg.rotate( Math.PI / 24 );
            }
        }    
    }
}