GET PALETTE
instruction: copy palette from a screen
Get Palette number
Get Palette number,mask
This command copies the colours from a specified screen, and loads them into the current screen. This is useful when data is being moved from one screen to another with a SCREEN COPY command, and the same colour settings need to be shared for both screens. An optional mask can be added after the screen number, allowing only selected colours to be loaded. This works in exactly the same way as a mask for a GET SPRITE PALETTE command, and is explained in Chapter 7.1.
Screen functions
AMOS Professional provides a full range of screen functions, to monitor and exploit the current
status of your screens.
SCREEN
function: give current screen number
screen number=Screen
SCREEN can be used as a function to return the number of the screen which is currently active. This screen is used for all drawing operations, but it is not necessarily visible.
SCREEN HEIGHT
function: give current screen height
height=Screen Height
height=Screen Height number
SCREEN WIDTH
function: give current screen width
height=Screen Width
height=Screen Width (number)
This pair of functions is used to return the height and the width of the current screen or a particular screen, if that screen number is specified. The dimensions of the current screen can be found like this:
E> Print Screen Height Print Screen Width
SCREEN COLOUR
function: give maximum number of colours
number=Screen Colour