home *** CD-ROM | disk | FTP | other *** search
- uses
- Graph;
-
- const
- Triangle : array[1..4] of PointType =
- ((x: 50; y: 100),
- (x: 100; y: 100),
- (x: 150; y: 150),
- (x: 50; y: 100));
-
- var
- Gd, Gm : integer;
-
- begin
- Gd := Detect;
- InitGraph(Gd, Gm, '');
- if GraphResult <> grOk then
- Halt(1);
- DrawPoly(SizeOf(Triangle) div SizeOf(PointType), { 4 }
- Triangle);
- Readln;
- CloseGraph;
- end.
-