home *** CD-ROM | disk | FTP | other *** search
- {$I turble.pas}
- {$I turble2.pas}
-
- Procedure Menu;
-
- begin
- GotoXY(27,3);
- Write('Choose from these figures:');
- GotoXy(32,5);
- Write('1. Tree');
- GotoXy(32,7);
- Write('2. Star');
- GotoXy(32,9);
- Write('3. Snowflake');
- GotoXy(32,11);
- Write('4. Inverted Spirals');
- GotoXy(32,13);
- Write('5. Spiral');
- GotoXy(32,15);
- Write('6. Polygon');
- GotoXy(32,17);
- Write('7. Slinky');
- GotoXy(32,19);
- Write('8. End');
- GotoXy(20,21);
- Write('Press space bar to stop continuous figures');
- GotoXy(27,22);
- Write('or any other key to continue.');
- end;
-
- Var
- Choice : Char;
- Number : Integer;
-
- Label Exit;
-
- begin
- Choice := '9';
- While Choice <> '8' do
- begin
- TextColor(Random(15) + 1);
- Menu;
- gotoxy(53,3);
- Read(Kbd,Choice);
- Randomize;
- Mode(CMR);
- Palettor(Random(4));
- Pencolor(Random(3) + 1);
- Case Choice of
- '1' : Tree(Random(75) + 35);
- '2' : Spiral(5,144,2 * Random(4) + 3);
- '3' : SnowFlake(Random(100) + 100,3);
- '4' : InSpiral(6,10,Random(16));
- '5' : Spiral(1,45,Random(2)+1);
- '6' : Poly(Random(7) + 3,Random(40) + 10);
- '7' : Slinky(Random(30) + 10,Random(40) - 20);
- ' '..'0' : Goto Exit;
- '9'..'~' : Goto Exit;
- end;
- If Choice <> '8' then read(Kbd,Choice);
- If Choice = ' ' then read(Kbd,Choice);
- exit : mode(C80);
- end;
- end.
-
-
-