Cairo::RadialGradient#
📦 std
Functions#
Other Functions#
create#
Creates a radial gradient between two circles, the first centered on ($cx0, $cy0) with radius $r0 and the second on ($cx1, $cy1) with radius $r1: Cairo::RadialGradient->create($cx0, $cy0, $r0, $cx1, $cy1, $r1). The gradient has no color until you add stops.
get_circles#
Returns the radial gradient’s two circles as the six-element list ($x0, $y0, $r0, $x1, $y1, $r1). On a pattern that is not a radial gradient it croaks with pattern-type-mismatch. Needs libcairo 1.4 or newer.