Graphics Pen; Hex$ - AMSTRAD cpc 6128 User Instruction

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

Advertisement

GRAPHICS PEN
G RA PH le S PEN [<ink>][, <background mode>]
10 MODE 0
20 GRAPH !CS PEN 15
30 MOVE 200,0
40 DRAW 200,400
50 MOVE 639,0
60 FILL 15
run
COMMAND: Sets the <ink>, (in the range 0 to 15) to be used for drawing lines and
plotting points. The graphics <background mode> can also be set to either:
o :
Opaque background
1:Transparentbackground
(Transparent background affects the graphics paper of characters written with TAG
on, and the gaps in dotted lines.)
Either parameter may be omitted, but not both. If a parameter is omitted, that
particular setting is not changed.
Associated keywords: G RAP HIe SPA PER, INK, M ASK, TAG, TAG 0 F F
HEX$
HEX $ ( <unsigned integer expression> [, <field width> ] )
PRINT HEX$(255,4)
00FF
FUNCTION: Produces a $tring of HEXadecimal digits representing the value of the
<unsigned integer expression>, using the number of hexadecimal digits instructed by
the <field width> (in the range 0 to 16). If the number of digits instructed is too great,
the resulting expression will be filled with leading zeros; if the number of digits
instructed is too small, the resulting expression will NOT be shortened to the
instructed number of digits, but will be produced in as many digits as are required.
The <unsigned integer expression> to be converted into hexadecimal form must yield
a value in the range -32768 to 65535.
Associated keywords: BIN $,
DE C
$, S T R$,
U
NT
Complete List of Keywords
Chapter 3 Page 31

Advertisement

Table of Contents
loading

Table of Contents