Mask; Max - AMSTRAD cpc 6128 User Instruction

Integrated computer/disc system
Hide thumbs Also See for cpc 6128:
Table of Contents

Advertisement

MASK
M ASK [<integer expression>][, <first point setting>]
10 MODE 0:INK 5,21:INK 8,16
20 MOVE -100*RND,400*RND
30 WHILE XPOS<640
40 FOR x=1 TO 8
50 MASK 21' (8-x)
60 DRAWR 32,0,x,1:MOVER -32,0
70 NEXT
80 MOVER 34,0
90 WEND:GOTO 20
run
COMMAND: Sets the 'mask' or template to be used when drawing lines. The binary
value of the <integer expression> in the range 0 to 255, sets the bits in each adjacent
group of8 pixels to ON (1), or OFF (0).
The <first point setting> determines whether the first point of the line is to be plotted
(1) or not plotted (0).
Either of the parameters may be omitted, but not both. If a parameter is omitted, that
particular setting is not changed.
Associated keywords: DRAW, DRAWR, GRAPHICS PAPER, GRAPHICS PEN
MAX
M A X ( <list of: <numeric expression> )
10 n=66
20 PRINT MAX(1,n,3,6,4,3)
run
66
FUNCTION: Returns the M A Ximum value from the <list of: <numeric expression>s.
Associated keywords: M I N
Complete List of Keywords
Chapter 3 Page 43

Advertisement

Table of Contents
loading

Table of Contents

Save PDF