About my projects, examples and tutorials
Gnome::Gsk4::RepeatingLinearGradientNode

Gnome::Gsk4::RepeatingLinearGradientNode

Description§

A render node for a repeating linear gradient.

Class initialization§

new§

:native-object§

Create an object using a native object from an object of the same type found elsewhere. See also Gnome::N::TopLevelSupportClass.

multi method new ( N-Object() :$native-object! )
Code

new-repeatinglineargradientnode§

Creates a Gnome::Gsk4::RenderNode that will create a repeating linear gradient from the given points and color stops, and render that into the area given by $bounds.

method new-repeatinglineargradientnode ( N-Object $bounds, N-Object $start, N-Object $end, N-Object $color-stops, Int() $n-color-stops --> Gnome::Gsk4::RepeatingLinearGradientNode \)
Code
  • $bounds; the rectangle to render the linear gradient into
  • $start; the point at which the linear gradient will begin
  • $end; the point at which the linear gradient will finish
  • $color-stops; a pointer to an array of Gnome::Gsk4::N-ColorStop 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; the number of elements in $color-stops.