Class Cairo.RadialGradient
- Description
A radial gradient.
- Inherit
Gradient
inherit Gradient : Gradient
- Method
create
Cairo.RadialGradient Cairo.RadialGradient(
float
|int
cx0
,float
|int
cy0
,float
|int
radius0
,float
|int
cx1
,float
|int
cy1
,float
|int
radius1
)- Description
Creates a new RadialGradient between the two circles defined by (cx0, cy0, radius0) and (cx1, cy1, radius1). Before using the gradient pattern, a number of color stops should be defined using add_color_stop_rgb() or add_color_stop_rgba().
- Note
The coordinates here are in pattern space. For a new pattern, pattern space is identical to user space, but the relationship between the spaces can be changed with set_matrix().
- Parameter
cx0
x coordinate for the center of the start circle
- Parameter
cy0
y coordinate for the center of the start circle
- Parameter
radius0
radius of the start circle
- Parameter
cx1
x coordinate for the center of the end circle
- Parameter
cy1
y coordinate for the center of the end circle
- Parameter
radius1
radius of the end circle