GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoShape Class / FillEllipseGradient Method / FillEllipseGradient(Color,Color) Method
the Color drawn inside the edges of the rectangular bounds
the Color filling the center of the shape
In This Topic
    FillEllipseGradient(Color,Color) Method
    In This Topic
    Set the Brush to be a gradient occupying this shape's Bounds, with the start color along the four edges of the rectangle, and with the center color at the center.
    Syntax
    public void FillEllipseGradient( 
       Color start,
       Color center
    )

    Parameters

    start
    the Color drawn inside the edges of the rectangular bounds
    center
    the Color filling the center of the shape
    Remarks
    The Brush is a PathGradientBrush using the rectangular bounds of this shape, clipped by the actual shape. Hence you may not see the start color very much, except where the shape is close to the bounds. This use of a PathGradientBrush does not suffer from the effects of GDI+ filling concave or multi-figure shapes. You can set the BrushPoint property to change where the center color is centered; the default is new PointF(0.5f, 0.5f), the middle of the shape. You can set the BrushFocusScales property to change the size of the center color area; the default is new SizeF(0, 0).
    See Also