class

Lottie::Keyframe(T)

Inherits Reference < Object

One keyframe: value holds from time; the segment interpolates towards end_value until end_time (the next keyframe's time — the parser fixes these up rlottie-style).

Constructors

new(time : Float64, value : T, end_value : T | Nil, end_time : Float64, easing : Nil | Lottie::Easing, hold : Bool)
Source

Instance methods

easing
Source
end_time
Source
end_time=(end_time : Float64)
Source
end_value
Source
end_value=(end_value : T | Nil)
Source
finalize_tangents

rlottie Value<Position>::cache(): tangents become absolute ("to" from the start point, "ti" from the end point) and the bezier length — via the approximate hypot — decides whether the path computation stays enabled at all.

Source
has_tangent?
Source
hold?
Source
position_at(t : Float64) : T

Point at eased progress t along the bezier arc (Value<Position>::at).

Source
tan_in
Source
tan_len
Source
tan_out
Source
ti_rel
Source
ti_rel=(ti_rel : Vec2 | Nil)
Source
time
Source
to_rel

Position-along-bezier ("to"/"ti" tangents, rlottie Value<Position>): relative offsets set by the parser, turned into the absolute bezier + its (approximate) length once the track fixups are done.

Source
to_rel=(to_rel : Vec2 | Nil)

Position-along-bezier ("to"/"ti" tangents, rlottie Value<Position>): relative offsets set by the parser, turned into the absolute bezier + its (approximate) length once the track fixups are done.

Source
value
Source