Method Cairo.Context()->set_source_rgba()
- Method
set_source_rgba
void
set_source_rgba(float
red
,float
green
,float
blue
,float
alpha
)- Description
Sets the source pattern to a translucent color. This color will then be used for any subsequent drawing operation until a new source pattern is set.
The color and alpha components are floating point numbers in the range 0 to 1. If the values passed in are outside that range, they will be clamped.
Note that the color and alpha values are not premultiplied.
The default source pattern is opaque black, (that is, it is equivalent to set_source_rgba(0.0, 0.0, 0.0, 1.0)).
- Parameter
red
red component of color
- Parameter
green
green component of color
- Parameter
blue
blue component of color
- Parameter
alpha
alpha component of color