Class: Gsk::RepeatingRadialGradientNode

Inherits:
RenderNode
  • Object
show all
Defined in:
(unknown)

Overview

A render node for a repeating radial gradient.

Instance Method Summary collapse

Methods inherited from RenderNode

deserialize, #draw, #get_bounds, #node_type, #ref, #serialize, #unref, #write_to_file

Constructor Details

#initialize(bounds, center, hradius, vradius, start, end, color_stops, n_color_stops) ⇒ Gsk::RepeatingRadialGradientNode

Creates a GskRenderNode that draws a repeating radial gradient.

The radial gradient starts around center. The size of the gradient is dictated by hradius in horizontal orientation and by vradius in vertical orientation.

Parameters:

  • bounds (Graphene::Rect)

    the bounds of the node

  • center (Graphene::Point)

    the center of the gradient

  • hradius (Gsk::gfloat)

    the horizontal radius

  • vradius (Gsk::gfloat)

    the vertical radius

  • start (Gsk::gfloat)

    a percentage >= 0 that defines the start of the gradient around center

  • end (Gsk::gfloat)

    a percentage >= 0 that defines the end of the gradient around center

  • color_stops (Array<Gsk::ColorStop>)

    a pointer to an array of 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.

  • n_color_stops (Integer)

    the number of elements in color_stops