home *** CD-ROM | disk | FTP | other *** search
AMOS Source Code | 1994-01-29 | 3.2 KB | 109 lines |
- '***************************************************************************
- '* *
- '* AMOS/PRO NEW GRAPHIC INSTRUCTIONS DEMO *
- '* *
- '* CODE WRITTEN BY : MANUEL ANDRE *
- '* *
- '* ANY SUGGESTIONS OR IMPROVEMENTS WRITE TO : *
- '* *
- '* MANUEL ANDRE *
- '* ARBEIDERSSTRAAT 9 *
- '* 2600 BERCHEM *
- '* BELGIUM *
- '* *
- '***************************************************************************
- '
- '
- Flash Off
- Curs Off
- COMBINE
- Wait Key
- Cls
- SQUARE
- Wait Key
- Cls
- _FILL_SQUARE
- Wait Key
- Cls
- FIRST_BLOCK
- Wait Key
- ENLARGE_FINER
- Wait Key
- Cls
- BLOCKS
- Cls
- End
- Procedure COMBINE
- Text 10,62,"Draw combined with R Draw"
- Text 10,72,"Press any key..."
- Draw 100,0 To 100,50
- Extension_12_0182 50,0
- Draw To 150,0
- Extension_12_0182 -50,0
- End Proc
- Procedure SQUARE
- Text 10,50,"The R Box instruction"
- Text 10,62,"for hollow rectangles."
- Text 10,74,"Press any key..."
- Gr Locate 100,100
- Extension_12_0192 100,10
- Extension_12_0172 0,50
- Extension_12_0192 40,40
- End Proc
- Procedure _FILL_SQUARE
- Text 10,50,"The R Bar instruction"
- Text 10,62,"for filled rectangles."
- Text 10,74,"Press any key..."
- Gr Locate 100,100
- Extension_12_01B0 100,10
- Extension_12_0172 0,50
- Extension_12_01B0 40,40
- End Proc
- Procedure FIRST_BLOCK
- Text 10,20,"These instructions can make life very "
- Text 10,32,"easy..."
- Text 10,44,"Press any key..."
- Extension_12_01A0 30,50
- For I=1 To 10
- Extension_12_0182 170,0
- Extension_12_0172 0,5
- Extension_12_0182 -170,0
- Extension_12_0172 0,5
- Next
- Extension_12_0172 0,-5
- For I=1 To 9
- Extension_12_0182 0,-95
- Extension_12_0172 10,0
- Extension_12_0182 0,95
- Extension_12_0172 10,0
- Next
- End Proc
- Procedure ENLARGE_FINER
- Text 67,32,"and very complex !"
- For J=0 To 100 Step 15
- Extension_12_01A0 30+J,50
- For I=1 To 10
- Extension_12_0182 170,0
- Extension_12_0172 0,5
- Extension_12_0182 -170,0
- Extension_12_0172 0,5
- Next
- Extension_12_0172 0,-5
- For I=1 To 9
- Extension_12_0182 0,-95
- Extension_12_0172 10,0
- Extension_12_0182 0,95
- Extension_12_0172 10,0
- Next
- Next
- End Proc
- Procedure BLOCKS
- Repeat
- Text 20,100,"Left mouse button to stop..."
- Extension_12_01A0 Rnd(280),Rnd(160) : Rem of Gr Locate Rnd(),Rnd()
- Extension_12_0182 20,40
- Extension_12_0182 40,0
- Extension_12_0182 -20,-40
- Extension_12_0182 -40,0
- Until Mouse Click
- End Proc