Anchor

class Anchor(val x: Float, val y: Float)(source)

A point on the frame as a fraction of it, origin top-left, with constants for the nine common positions.

An anchor names a spot in the output frame, after every geometry effect has run. A value outside 0f..1f names a spot off the frame, which is what an overlay animated past an edge is brought to, and the part that leaves the frame is not drawn.

Constructors

Link copied to clipboard
constructor(x: Float, y: Float)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val x: Float

Horizontal position as a fraction of the frame width.

Link copied to clipboard
val y: Float

Vertical position as a fraction of the frame height.