|
AdvancedTween
Advanced Matrix and ColorMatrixFilter tweensTweensy has a package called extras which contains classes which help you to do complicated animations in a very easy manner. These tweens include Matrix transformations around a registration point. As well ColorMatrixFilter effects such as brightness, contrast, colorize and threshold. Advanced Matrix tweensAn advanced Matrix tween allows for applying Matrix transformations around a defined registration point. These transformations include rotation, skewX, skewY, scaleX, scaleY, translationX and translationY. import com.flashdynamix.motion.; import com.flashdynamix.motion.extras.MatrixTransform; This will tween 'myInstance' rotation to 45 degrees around the middle of 'myInstance'. ColorMatrixFilter tweensThe ColorMatrixFilter allows for applying complex color alterations like brightness, contrast, saturation, colorize and threshold. The ColorMatrix class helps to create the 4x5 Array matrix to then be tweened onto a ColorMatrixFilter. import flash.filters.ColorMatrixFilter; import com.flashdynamix.motion.; import com.flashdynamix.motion.extras.ColorMatrix; This will tween the ColorMatrixFilter from the identity matrix to the Array matrix defined by ColorMatrix and apply the ColorMatrixFilter to 'myInstance' |
Sign in to add a comment