Method Cairo.Context()->set_source_rgb()
- Method
set_source_rgb
voidset_source_rgb(floatred,floatgreen,floatblue)- 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