home *** CD-ROM | disk | FTP | other *** search
- ;; Workbench text and graphics demo.
- ;; A Scripit script by Khalid Aldoseri.
-
- ;; Select the Workbench window to act upon.
- select window workbench
- ;; Send Workbench a Redraw command to clear its backdrop window
- wb redraw
- ;; Save the current pen mode of the WB window
- gfx savemode
- ;; Set the front pen to 1, back pen to 0, draw mode to JAM2
- gfx pen 1,0,JAM2
- ;; Move the current pointer to 130,20
- gfx move 130,20
- ;; and write some text there.
- gfx text "Is it possible to draw graphics onto Workbench??"
- ;; Let's wait a while.
- wait 75
- ;; Change pen again.
- gfx pen 3,2,JAM2
- ;; And type some more text, but this time word by word.
- gfx move 200,35
- gfx text "YES!!"
- wait
- gfx text " Scripit"
- wait
- gfx text " can"
- wait
- gfx text " do"
- wait
- gfx text " it!"
- wait 75
- gfx pen 1,0,JAM2
- ;; Draw some boxes
- gfx box 250,50,350,150
- gfx box 200,75,400,125
- gfx box 200,50,400,150
- ;; Change the pen to color 3
- gfx pen 3,0,JAM2
- ;; Draw a few more things.
- gfx circle 300,100,50
- gfx ellipse 300,100,100,50
- gfx ellipse 300,100,100,25
- gfx line 254,77,346,123
- gfx line 254,123,346,77
- ;; Retore the pen colors and draw mode to what they were.
- gfx restoremode
-