home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
mbug
/
mbug117.arc
/
TURBO.LBR
/
ELLIPSES.PAS
next >
Wrap
Pascal/Delphi Source File
|
1979-12-31
|
640b
|
24 lines
PROGRAM ellipses (input, output);
{$ILORES.LIB)
VAR
x_rad, y_rad : byte;
centre : pt;
BEGIN
fillchar (vdu_ram, sizeof (vdu_ram), ' ');
set_screen (s80_24);
init_pcg;
REPEAT
centre . x := random (screen . cols);
centre . y := random (screen . rows);
x_rad := random (screen . cols DIV 2);
y_rad := random (screen . rows DIV 2);
ellipse (centre, x_rad, y_rad, invert);
IF NOT error THEN
fill (centre, fill_mode (random (2)))
UNTIL keypressed;
set_screen (s80_24);
inverse_init
END.