Created
May 31, 2022 11:52
-
-
Save dilrajsingh1997/2f26e90695a982f1119486c99b398a9f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ItemStateBuilder( | |
val composeCanvasDrawItem: ComposeCanvasDrawItem, | |
val initialX: Float, | |
val initialY: Float, | |
val initialAlpha: Float = 1.0f, | |
val initialAngle: Float = 0.0f, | |
val initialColor: Color = Color.White, | |
val initialScale: Float = 1.0f | |
) { | |
internal var xAnimation: Animation<Float, AnimationVector1D>? = null | |
internal var yAnimation: Animation<Float, AnimationVector1D>? = null | |
internal var alphaAnimation: Animation<Float, AnimationVector1D>? = null | |
internal var angleAnimation: Animation<Float, AnimationVector1D>? = null | |
internal var colorAnimation: Animation<Color, AnimationVector4D>? = null | |
internal var scaleAnimation: Animation<Float, AnimationVector1D>? = null | |
internal var terminalCondition: (( | |
interpolatedX: Float, | |
interpolatedY: Float, | |
interpolatedAlpha: Float, | |
interpolatedAngle: Float, | |
interpolatedColor: Color, | |
interpolatedScale: Float, | |
elapsedTimeMillis: Float | |
) -> Boolean)? = null | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment