About all my projects
Gnome::Gsk4::ColorNode

Gnome::Gsk4::ColorNode

Description

A render node for a solid color.

Class initialization

new

:native-object

Create an object using a native object from elsewhere. See also Gnome::N::TopLevelSupportClass.

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

new-colornode

Creates a Gnome::Gsk4::RenderNode that will render the color specified by $rgba into the area given by $bounds.

method new-colornode ( N-Object $rgba, N-Object $bounds --> Gnome::Gsk4::ColorNode \)
  • $rgba; a Gnome::Gdk4::N-RGBA specifying a color

  • $bounds; the rectangle to render the color into

Methods

get-color

Retrieves the color of the given $node.

method get-color (--> N-Object )

Return value; the color of the node.