Draws and fills an elliptical sector.
procedure Sector(x, y: Integer; StAngle,EndAngle, XRadius, YRadius: Word);
Using (X, Y) as the center point, XRadius and YRadius specify the horizontal and vertical radii, respectively; Sector draws from StAngle to EndAngle, outlined in the current color and filled with the pattern and color defined by SetFillStyle or SetFillPattern.
A start angle of 0 and an end angle of 360 will draw and fill a complete ellipse. The angles for Arc, Ellipse, FillEllipse, PieSlice, and Sector are counter-clock-wise with 0 degrees at 3 o'clock, 90 degrees at 12 o'clock, and so on.
If an error occurs while filling the sector, GraphResult returns a value of grNoScanMem.
Must be in graphics mode.