Language:
Русский
English
{Grfdeflt.PAS}
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
{Sample code for the GraphDefaults procedure.}
uses
Crt, Graph;
var
Gd, Gm : Integer;
begin
Gd := Detect; InitGraph(Gd, Gm, '');
if GraphResult <> grOk then Halt(1);
SetColor(1);
OutText('This text is in color #1');
ReadLn;
{ Now start over...}
ClearViewPort; { Erase everything}
GraphDefaults; { Reset to all defaults}
OutText('This text is the default color');
ReadLn;
CloseGraph;
end.