struct

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)))
Source

Instance methods

center
Source
cradius
Source
end_point
Source
focal
Source
fradius
Source
start
Source
stops
Source
type
Source