littlekt
0.6.0
common
core
/
com.lehaine.littlekt.graphics.g2d
/
AnimationBuilder
Animation
Builder
class
AnimationBuilder
<
T
>
(
frames
:
List
<
T
>
)
An
Animation
builder to help create custom animations easily.
Constructors
Functions
See also
See also
Animation
Animation
Player
Constructors
Animation
Builder
Link copied to clipboard
fun
<
T
>
AnimationBuilder
(
frames
:
List
<
T
>
)
Functions
build
Link copied to clipboard
fun
build
(
)
:
Animation
<
T
>
frames
Link copied to clipboard
fun
frames
(
index
:
Int
=
0
,
repeats
:
Int
=
0
,
frameTime
:
Duration
=
100.milliseconds
)
fun
frames
(
indices
:
IntRange
=
0..frames.size
,
repeats
:
Int
=
0
,
frameTime
:
Duration
=
100.milliseconds
)