home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turbo Toolbox
/
Turbo_Toolbox.iso
/
turbo5
/
bgiexamp.arc
/
SETCOL.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1988-08-29
|
318b
|
15 lines
uses
Crt, Graph;
var
GraphDriver, GraphMode : integer;
begin
GraphDriver := Detect;
InitGraph(GraphDriver, GraphMode, '');
if GraphResult <> grOk then
Halt(1);
Randomize;
repeat
SetColor(Random(GetMaxColor)+1);
LineTo(Random(GetMaxX), Random(GetMaxY));
until KeyPressed;
end.