Cairo.RadialGradient Class
Extends Cairo.Gradient to create a new radial gradient between the two circles defined by (cx0, cxy0, radius0) and (cx1, cy1, radius1).

See Also: RadialGradient Members

Syntax

public class RadialGradient : Gradient

Remarks

Before using the gradient pattern, a number of color stops should be defined using AddColorStop() or AddColorStopRgb().

C# Example

pat = new RadialGradient (0.45, 0.4, 0.1, 0.4,  0.4, 0.5);

pat.AddColorStop (0, new Color (1, 1, 1, 1) );
pat.AddColorStop (1, new Color (0, 0, 0, 1) );
gr.Pattern =  pat;
gr.Arc (0.5, 0.5, 0.3, 0, 2 * Math.PI);
gr.Fill ();

pat.Destroy ();
  

Requirements

Namespace: Cairo
Assembly: Mono.Cairo (in Mono.Cairo.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0