Package: cairo

Function cairo-set-source-rgb

Lambda List

cairo-set-source-rgb (cr red green blue)

Arguments

cr -- a cairo-t context
red -- a double float red component of the color
green -- a double float green component of the color
blue -- a double float blue component of the color

Details

Sets the source pattern within cr to an opaque color. This opaque color will then be used for any subsequent drawing operation until a new source pattern is set.

The color components are floating point numbers in the range 0.0 to 1.0. If the values passed in are outside that range, they will be clamped.

The default source pattern is opaque black, that is, it is equivalent to
(cairo-set-source-rgb cr 0.0 0.0 0.0)  

Note

The color arguments are converted to the type double-float before being passed to the C function. So you can enter any number as an argument for the colors.
 

See also

*2021-12-12