fromText

abstract fun fromText(vararg frames: String): Animation

Creates an animation from an Array of String.

Each line must follow the pattern [fade-in;stay;fade-out]text

fade-in = The time it takes for a title to fade onto the screen. If the frame is not used in a title, it will be added onto the stay time instead.

stay = The time it takes for the frame to stay on the screen.

fade-out = The time it takes for a title to fade off of the screen. If the frame is not used in a title, it will be added onto the stay time instead.

Return

The Animation generated from the frames.

Since

2.0.0

Parameters

frames

The frames that will be converted to String

Sources

jvm source
Link copied to clipboard