Flashリハビリシリーズ2 [2010-7-11]
♥0 |
Line 22 |
Modified 2010-07-12 03:21:45 |
MIT License
archived:2017-03-20 08:58:03
ActionScript3 source code
/**
* Copyright albatrus_jp ( http://wonderfl.net/user/albatrus_jp )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/qGg3
*/
package
{
import flash.display.GradientType;
import flash.display.Sprite;
import flash.events.MouseEvent;
import flash.geom.Matrix;
public class TEST extends Sprite
{
public function TEST()
{
graphics.lineStyle(2);
var color:Array = [0x00fffff,0xffff00];
var alpha:Array = [0.1,1];
var ratios:Array = [0,255];
var matrix:Matrix =new Matrix();
matrix.createGradientBox(100,100,Math.PI/3,100,100);
graphics.beginGradientFill(GradientType.LINEAR,color,alpha,ratios,matrix);
graphics.drawRect(30,30,300,300);
graphics.endFill();
}
}
}