Language:
Русский
English
{Fillelps.PAS}
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
{Sample code for the FillEllipse procedure.}
uses Graph;
const R = 30;
var
Driver, Mode: Integer;
Xasp, Yasp: Word;
begin
Driver := Detect; { Put in graphics mode }
InitGraph(Driver, Mode, '');
if GraphResult < 0 then
Halt(1);
{ Draw ellipse }
FillEllipse(GetMaxX div 2, GetMaxY div 2, 50, 50);
GetAspectRatio(Xasp, Yasp);
{ Circular ellipse }
FillEllipse(R, R, R, R * Longint(Xasp) div Yasp);
Readln;
CloseGraph;
end.