Lottie::Animation
Inherits Reference < Object
Constructors
new(comp : Lottie::Comp)
SourceClass methods
load(path : String) : Animation | Nil
Sourceparse(json : String) : Animation | Nil
Parse (or return nil for a rejected source: no viewport or fps).
Instance methods
comp
Sourceduration(*args, **options)
Sourceduration(*args, **options, &)
Sourceevaluate(frame : Int32) : Array(DrawPath)
Frame-time evaluation (flat painted paths — the render_tree encoding; spec/dataset replay compares this output).
fps(*args, **options)
Sourcefps(*args, **options, &)
Sourceframe_count(*args, **options)
Sourceframe_count(*args, **options, &)
Sourceheight(*args, **options)
Sourceheight(*args, **options, &)
Sourcerender(frame : Int32, buf : Bytes, w : Int32, h : Int32) : Bool
Rasterize frame into buf (wh4 straight-alpha RGBA8,
aspect-preserved, letterboxed — the rlottie shim contract).
width(*args, **options)
Sourcewidth(*args, **options, &)
Source