fromTextFile

abstract fun fromTextFile(file: File): Animation(source)

Creates an animation from a File. Each line of the file will be converted to an Array and fed into the fromText

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

file

The file that will be read and converted to an Animation.