Properties
duration
duration: number
end
end: { color?: Color; rotation?: number; scaling?: Vector2; translation?: Vector2 }
Type declaration
-
Optional color?: Color
-
Optional rotation?: number
-
Optional scaling?: Vector2
-
Optional translation?: Vector2
playmode
playmode: ANIMATION_PLAYMODE
start
start: { color?: Color; rotation?: number; scaling?: Vector2; translation?: Vector2 }
Type declaration
-
Optional color?: Color
-
Optional rotation?: number
-
Optional scaling?: Vector2
-
Optional translation?: Vector2
Pattern for the definition of an animation
Define the animation of the transformation or the color over time
Example