Amos Professional Manual  Contents  Index

Setting up Screens


SCREEN TO BACK
instruction: move screen to back of display
Screen To Back
Screen To Back number

This command is used to move a screen to the background of the display. If another screen is already there, it will be displayed in front of the chosen screen. Again, if the screen number is omitted after a SCREEN TO BACK command, the current screen will be relegated to the back of the display queue. Try this example:

E> Centre "Hello again, Screen 0 here"
   Wait 100
   Screen Open 1,320,200,2,Lowres
   Centre "Excuse me, make way for Screen 1"
   Wait 100 : Screen To Front 0
   Screen 0
   Wait 100 : Screen To Back

SCREEN
instruction: set current screen
Screen number

This command allows all graphical and text operations to be directed to the selected screen number, like this:

E> Screen Open 2,320,32,16,Lowres
   Screen Display 2,,130,,
   Screen 0
   Plot 0,0: Draw To 320,200

If the chosen screen is outside of the current display area or is hidden, there will be no visible effect. However, any graphics will be drawn in memory, waiting to be displayed whenever this screen comes into view, or out of hiding after a Screen Show command.

Defining screen colours

DEFAULT PALETTE
instruction: define standard palette
Default Palette $1,$2,$3 ... $32

It is often necessary to open several screens using the same palette. To simplify this process, the DEFAULT PALETTE instruction is used to define a standard palette which will be used by all subsequent screens created by the SCREEN OPEN command. Colours are set using the $RGB values that are fully explained in the COLOUR section of Chapter 6.4. Up to 32 colours may be defined, depending on the screen mode, and any colours that are not re-set must have their appropriate commas in place. Here is an example line for eight colour screens:

D> Default Palette $000,$111,$A69,,,,,$FFF
Back    Next
06.01.09