class

Lottie::GradientFill

Inherits Lottie::ShapeItem < Reference < Object

"gf": gradient fill. The stop data ("g"."k") is the flat array [pos, r, g, b, pos, r, g, b, ...] followed — for the legacy opacity form — by [pos, opacity, ...] pairs (rlottie Gradient::populate splits it using "g"."p" as the color-point count). "t": 1 linear, 2 radial (with "h" highlight length / "a" highlight angle for the focal point).

Instance methods

color_points
Source
color_points=(color_points : Int32)
Source
end_point
Source
end_point=(end_point : Prop(Vec2))
Source
fill_rule
Source
fill_rule=(fill_rule : Int32)
Source
gradient_type
Source
gradient_type=(gradient_type : Int32)
Source
highlight_angle
Source
highlight_angle=(highlight_angle : Prop(Float64))
Source
highlight_length
Source
highlight_length=(highlight_length : Prop(Float64))
Source
opacity
Source
opacity=(opacity : Prop(Float64))
Source
start
Source
start=(start : Prop(Vec2))
Source
stops
Source
stops=(stops : Prop(Array(Float64)))
Source