home *** CD-ROM | disk | FTP | other *** search
/ Turbo Toolbox / Turbo_Toolbox.iso / turbo4 / grexampl.arc / SETALLP.PAS < prev    next >
Encoding:
Pascal/Delphi Source File  |  1987-11-17  |  399 b   |  24 lines

  1. uses
  2.   Graph;
  3. var
  4.   Gd, Gm : integer;
  5.   Palette : PaletteType;
  6. begin
  7.   Gd := Detect;
  8.   InitGraph(Gd, Gm, '');
  9.   if GraphResult <> grOk then
  10.     Halt(1);
  11.   Line(0, 0, GetMaxX, GetMaxY);
  12.   with Palette do
  13.   begin
  14.     Size      := 4;
  15.     Colors[0] := 5;
  16.     Colors[1] := 3;
  17.     Colors[2] := 1;
  18.     Colors[3] := 2;
  19.     SetAllPalette(Palette);
  20.   end;
  21.   Readln;
  22.   CloseGraph;
  23. end.
  24.