Grx.color_get_red
function color_get_red(c: Grx.Color): Number(guint8) {
// Gjs wrapper for grx_color_get_red()
}
Gets the red component of a color value.
This function only works on RGB colors and not color table values. For color table values, use Grx.color_query instead.
- c
the source color value.
- Returns
the red component.