Class Cairo.SolidPattern
- Description
A solid (uniform) color. It may be opaque or translucent.
- Inherit
Pattern
inherit Pattern : Pattern
- Method
create
Cairo.SolidPattern Cairo.SolidPattern(
float
red
,float
green
,float
blue
,float
|void
alpha
)- Description
Creates a new Pattern corresponding to an opaque or translucent color. 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.
- Parameter
red
red component of the color
- Parameter
green
green component of the color
- Parameter
blue
blue component of the color
- Parameter
alpha
alpha component of the color. If omitted the pattern will be opaque.