home *** CD-ROM | disk | FTP | other *** search
- PROGRAM Demo;
-
- { Einfache Demonstration der Graphikmöglichkeiten }
- { (c) 1990 Prospero Software }
-
- {$I PASPC}
-
- CONST Msg = 'PROSPERO SOFTWARE';
-
- VAR Ch : Char;
- Scan : Byte;
- i : Integer;
- BIOS : Boolean;
-
- BEGIN
- InitScreen;
- SetGraphics;
- Scale (4000,3000); { Auf 4000x3000 Punkte skalieren }
-
- FOR i := 1 TO 15 DO { Zeichnen von verschieden- }
- BEGIN { farbigen konzentrischen Kreisen }
- SetFill (i,0,FALSE);
- Circle (1000,2000,i*60);
- END;
-
- SetFill (White,Blue,TRUE); { Text blau mit weißem Rand }
- ScreenText (Msg,100,100,3800 DIV Length(Msg),800);
- ScreenText ('Pascal Version iid 5.205',350,750,0,0);
-
- { Zeichnen einer Phantasiefigur }
- Draw (2000,2900,2000,2500,Magenta);
- FOR i := 0 TO 20 DO
- BEGIN
- DrawTo (2000+80*i,2000,Magenta);
- DrawTo (2040+80*i,2000,Magenta);
- DrawTo (2040+80*i,2500,Magenta);
- DrawTo (2080+80*i,2500,Magenta);
- END;
- DrawTo (3680,2900,Magenta);
- DrawTo (2000,2900,Magenta);
- FillShape (2020,2600,LightMagenta,Magenta);
-
- SetFill (LightBlue,Green,TRUE);
- Ellipse (3400,1000,500,200);
- Sector (3500,1600,300,1.0,5.0);
- Seg (2500,1500,200,2.0,4.5);
- Crescent (2400,1400,480,2200,1500,400,FALSE);
- Triangle (500,900,2000,1000,1400,1100);
-
- GetKeyboard(Ch,Scan);
- InitScreen;
- END.
-