flash on 2010-8-3
♥0 |
Line 16 |
Modified 2010-08-03 18:34:26 |
MIT License
archived:2017-03-20 13:31:47
ActionScript3 source code
/**
* Copyright takishiki ( http://wonderfl.net/user/takishiki )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/8X7u
*/
package {
import flash.display.Sprite;
public class FlashTest extends Sprite {
public function FlashTest() {
// write as3 code here..
// 関数詰め合わせ
}
// degree -> radian
private function deg2rad(deg:Number):Number {
return deg / 180 * Math.PI;
}
// radian -> degree
private function rad2deg(rad:Number):Number {
return rad / Math.PI * 180;
}
// a, r, g, b -> hex
private function hexColor(r:int, g:int, b:int, a:int = 0):uint {
// a:alpha
return (a << 24) + (r << 16) + (g << 8) + b;
}
}
}