Gimp.cairo_set_source_rgba

function cairo_set_source_rgba(cr: cairo.Context, color: Gimp.RGB): void {
    // Gjs wrapper for gimp_cairo_set_source_rgba()
}
  

Sets the source pattern within cr to the solid translucent color described by color.

This function calls cairo_set_source_rgba() for you.

Since 2.6

cr

Cairo context

color

GimpRGB color