OverlayFrame

class OverlayFrame(val opacity: Float = 1.0f, val offset: OverlayOffset = OverlayOffset.Zero, val scale: Float = 1.0f)(source)

The three things an animation may change about one drawn frame.

Constructors

Link copied to clipboard
constructor(opacity: Float = 1.0f, offset: OverlayOffset = OverlayOffset.Zero, scale: Float = 1.0f)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Displacement from where the overlay would otherwise sit, as a fraction of the frame it is drawn on.

Link copied to clipboard

Alpha the overlay is drawn with, in 0f..1f.

Link copied to clipboard

Multiplier on the overlay's drawn size, at least zero. It grows the overlay away from the point it is anchored by, and on a text overlay it resamples the raster rather than re-laying the glyphs.