OverlayAnimation

How an overlay is drawn at one instant.

Sampled once per output frame over the range the overlay is drawn across, so the opacity, offset and scale it answers may differ on every frame. It is a fun interface, so a lambda is the shorthand for a curve the built-in helpers do not cover.

Functions

Link copied to clipboard
abstract fun frameAt(time: OverlayTime): OverlayFrame

Answers how the overlay is drawn at time.

Link copied to clipboard

Runs both animations on every frame and merges what they answer.