PEN
P E N [ # < s t r e a m e x p r e s s i o n > , ] < m a s k e d i n k >
P E N 1,2
COMMAND:
PEN
sets the ink to be used when drawing at the given screen stream, defaulting to
screen # 0.
Associated keywords: INK, PAPER
PI
PI
PRINT PI
3.14159265
1 0 R E M P e r s p e c t i v e d r a w i n g
20 MODE 2
30 RAD
40 INK 1,0
50 INK 0,12
60 BORDER 9
70 FOR N= 1 TO 200
80 ORIGIN 420,0
90 DRAW 0,200
1 0 0 R E M d r a w a n g l e s f r o m v a n i s h i n g p o i n t
1 1 0 D R A W 3 0 * N * S I N ( N * P I / 4 ) , ( S I N ( P I / 2 ) ) * N
*SIN(N)
120 NEXT
130 MOVE 0,200
140 DRAWR 0,50
150 DRAWR 40,0
160 WINDOW 1,40,1,10
1 7 0 P R I N T " N o w y o u c a n f i n i s h t h e y o u c a n f i n i s h t h e
H a n g m a n p r o g r a m ! "
FUNCTION: The value of the ratio between the circumference and the diameter of a circle. It is used
extensively in graphics routines such as the one listed above.
Associated keywords:
DEG, RAD
Summary of Contents for CPC464
Page 1: ......
Page 102: ...PRINT 10 AND 12 Results in 8 PRINT 10 AND 1000 Results in 8 again ...
Page 118: ...TO DO DRAW THIS PAGE ...
Page 219: ...actual value may be made to vary during the execution of a program ...
Page 240: ...Text and WINDOW planner Mode 2 80 Columns ...
Page 241: ......