Name
cairo.PatternRadial -- create radial pattern
Synopsis
pat = cairo.PatternRadial(cx0, cy0, radius0, cx1, cy1, radius1)
Function
Creates a new radial gradient Cairo pattern 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 cpattern:AddColorStopRGB() or cpattern:AddColorStopRGBA().

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 cpattern:SetMatrix().

This function returns the newly created Cairo pattern if successful, or an error pattern in case of no memory. The caller owns the returned object and should call cpattern:Free() when finished with it.

This function will always return a valid handle, but if an error occurred the pattern status will be set to an error. To inspect the status of a pattern use cpattern:Status().

Inputs
cx0
x coordinate for the center of the start circle
cy0
y coordinate for the center of the start circle
radius0
radius of the start circle
cx1
x coordinate for the center of the end circle
cy1
y coordinate for the center of the end circle
radius1
radius of the end circle
Results
x
the newly created Cairo pattern

Show TOC