Class: Gsk::RepeatingLinearGradientNode
- Inherits:
-
RenderNode
- Object
- RenderNode
- Gsk::RepeatingLinearGradientNode
- Defined in:
- (unknown)
Overview
A render node for a repeating linear gradient.
Instance Method Summary collapse
-
#initialize(bounds, start, end, color_stops, n_color_stops) ⇒ Gsk::RepeatingLinearGradientNode
constructor
Creates a
GskRenderNodethat will create a repeating linear gradient from the given points and color stops, and render that into the area given by bounds.
Methods inherited from RenderNode
deserialize, #draw, #get_bounds, #node_type, #ref, #serialize, #unref, #write_to_file
Constructor Details
#initialize(bounds, start, end, color_stops, n_color_stops) ⇒ Gsk::RepeatingLinearGradientNode
Creates a GskRenderNode that will create a repeating linear gradient
from the given points and color stops, and render that into the area
given by bounds.
GskColorStop defining the gradient. The offsets of all color stops
must be increasing. The first stop's offset must be >= 0 and the last
stop's offset must be <= 1.