Gimp.cairo_set_source_rgb
function cairo_set_source_rgb(cr: cairo.Context, color: Gimp.RGB): void {
// Gjs wrapper for gimp_cairo_set_source_rgb()
}
Sets the source pattern within cr to the solid opaque color described by color.
This function calls cairo_set_source_rgb() for you.
Since 2.6
- cr
Cairo context
- color
GimpRGB color