Tweenerの拡張機能
利用方法- import caurina.transitions.properties.*; でインポートする
- init で呼びだす
【1】FilterShortcuts
FilterShortcuts.init(); を呼び出してDropShadowFilter の値を動かしています。 Tweenerの中で、DropShadeFilterのangle,distance,blurX,blurYを、_DropShadeowで動かしています。
DropShadowFilter(distance, angle, color, alpha, blurX, blurY, strength, quality, inner, knockout, hideObject)
【2】Colorshortcuts
Colorshortcuts.init();
changeColor(ball); で色の変化、Tweenerを呼び出している。 実際に呼び出しているのは_color
Math.ceil() 切り上げ Math.sqrt() 平方根