Grx.color_get

function color_get(r: Number(guint8), g: Number(guint8), b: Number(guint8)): Grx.Color {
    // Gjs wrapper for grx_color_get()
}
  

Gets a color based on the RGB value.

A new color is allocated in the color table if needed.

The color should be released with Grx.color_put when it is no longer used.

r

the red component value

g

the green component value

b

the blue component value

Returns

the composite color value or #GRX_COLOR_NONE if there are no more free colors.