indigo.shared.scenegraph.Sprite
See theSprite companion object
final case class Sprite[M <: Material](bindingKey: BindingKey, material: M, animationKey: AnimationKey, animationActions: Batch[AnimationAction], eventHandlerEnabled: Boolean, eventHandler: ((Sprite[_], GlobalEvent)) => Option[GlobalEvent], position: Point, rotation: Radians, scale: Vector2, depth: Depth, ref: Point, flip: Flip) extends DependentNode[Sprite[M]], Cloneable, SpatialModifiers[Sprite[M]]
Sprites are used to represented key-frame animated screen elements.
Attributes
Members list
Type members
Inherited types
Attributes
- Inherited from:
- DependentNode
Value members
Concrete methods
Moves the sprite's playhead to a position down the timeline based on a value ranged 0.0 to 1.0, where 0.0 is the start and 1.0 is the end of the timeline.
Moves the sprite's playhead to a position down the timeline based on a value ranged 0.0 to 1.0, where 0.0 is the start and 1.0 is the end of the timeline.
Value parameters
- position
-
A value between
0.0d
and1.0d
Attributes
- Returns
-
Sprite[Material]
Inherited methods
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
In this article