Method Cairo.RadialGradient()->create()
- Method
create
Cairo.RadialGradient Cairo.RadialGradient(float|intcx0,float|intcy0,float|intradius0,float|intcx1,float|intcy1,float|intradius1)- 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