星表示関数(太さ,色)

by naokey0221
♥0 | Line 22 | Modified 2010-05-28 00:35:05 | MIT License
play

ActionScript3 source code

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

package {
	         import flash.display.Sprite;
	         public class FlashTest extends Sprite {
	         public function FlashTest() 
	         {
	           	drawStar(20,0x000000);
	           	drawStar(10,0x0000ff);
	           	drawStar(2,0x00ff00);
	           	            
	         }
	        
            private function drawStar(lineB:Number,
            lineC:Number):void
            {
	            graphics.lineStyle(lineB,lineC);
                graphics.moveTo(50,100);
	            graphics.lineTo(250,100);
	            graphics.lineTo(100,220);
	            graphics.lineTo(150,50);
	            graphics.lineTo(200,220);
	            graphics.lineTo(50,100);
	        }
    }
}

Forked