Method Cairo.Context()->set_source_rgb()


Method set_source_rgb

void set_source_rgb(float red, float green, float blue)

Description

Sets the source pattern 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 to 1. 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 set_source_rgb(0.0, 0.0, 0.0)).

Parameter red

red component of color

Parameter green

green component of color

Parameter blue

blue component of color