1.9 <GskColorNode>

Class: <GskColorNode>

It derives from <GskRenderNode>.

A render node for a solid color.

Procedures

Method: color-node:get-color self ⇒ %return
Method: get-color self ⇒ %return

Retrieves the color of the given self.

The value returned by this function will not be correct if the render node was created for a non-sRGB color.

self

Passed: a <GskColorNode>.

a <GskRenderNode>

%return

Returned: a <GdkRGBA>.

the color of the node

Procedure: color-node:new rgba bounds ⇒ %return

Creates a <GskRenderNode> that will render the color specified by rgba into the area given by bounds.

rgba

Passed: a <GdkRGBA>.

a <GdkRGBA> specifying a color

bounds

Passed: a <GrapheneRect>.

the rectangle to render the color into

%return

Returned: a <GskColorNode>.

A new <GskRenderNode>