Pi - AMSTRAD cpc 6128 User Instruction

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

Advertisement

PI
PI
PRINT PI
3.14159265
FUNCTION: Returns the value of the ratio between circumference and diameter of a
circle.
Associated keywords: D E G, RA D
PLOT
PLO T <x co-ordinate> , <y co-ordinate>[, [<ink>][, <ink mode>]]
10 MODE 1:BORDER 0:PAPER 0:PEN 1
20 INK 0,0:INK 1,26:INK 2,13,26:DEG
30 FOR x=1 TO 360:0RIGIN 320,200
40 DRAW 50*COS(x),50*SIN(x),1
50 PLOT 100*COS(x),25*SIN(x):NEXT
60 ORIGIN 0,0:t=TIME+700:WHILE TIME<t
70 PLOT RND*640,RND*400:WEND
80 PLOT RND*640,RND*400,2
90 GOTO 90
run
COMMAND: Plots a point on the graphics screen, at the absolute position specified in
the x,y co-ordinates. The <ink> in which to plot the point may be specified (in the range
o
to 15).
The optional <ink mode> determines how the ink being written interacts with that
already on the graphics screen. The 4 <ink mode>s are:
0: Normal
1 : XOR (eXclusive OR)
2:AND
3:0R
Associated keywords: G RA PHI CS PEN, PLOT R
Complete List of Keywords
Chapter 3 Page 57

Advertisement

Table of Contents
loading

Table of Contents