Lottie::GradientPaint
Inherits Struct < Value < Object
Resolved gradient paint — coordinates already mapped through the paint matrix (the dump contract: linear start/end, radial center/focal/cradius with cradius scaled by the matrix's average scale), stops quantized exactly like rlottie's updateGStops (rgba bytes, alpha carrying the combined opacity).
Constructors
new(type : Int32, start : Lottie::Vec2, end_point : Lottie::Vec2, center : Lottie::Vec2, focal : Lottie::Vec2, cradius : Float64, fradius : Float64, stops : Array(Tuple(Float64, Int32, Int32, Int32, Int32)))
SourceInstance methods
center
Sourcecradius
Sourceend_point
Sourcefocal
Sourcefradius
Sourcestart
Sourcestops
Sourcetype
Source