Package-level declarations

Types

Link copied to clipboard
abstract class Anim

Base class for animation types.

Link copied to clipboard

An Anim that triggers a render callback every frame.

Link copied to clipboard
class TextAnim : Anim

An Anim that renders some text, which gets updated on each new frame.

Functions

Link copied to clipboard

fun Session.renderAnimOf(numFrames: Int, frameDuration: Duration, looping: Boolean = true, handler: RenderScope.(Int) -> Unit): RenderAnim

Instantiate a RenderAnim tied to the current Session.

Link copied to clipboard

Append the current frame of text animation to the current section.

Link copied to clipboard

fun Session.textAnimOf(frames: List<String>, frameDuration: Duration, looping: Boolean = true): TextAnim

Instantiate a TextAnim tied to the current Session.

Link copied to clipboard

Append the current frame of text animation to the current section, followed by a newline.