Skip to content

Commit

Permalink
Added Graphic_demo2.bas
Browse files Browse the repository at this point in the history
  • Loading branch information
bodhi-baum authored Jan 31, 2024
1 parent 055e666 commit 0f967e6
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions SC3000/Graphic_demo2.bas
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
50 REM Computer Input 11.83, page 27
100 REM ***DEMO 2 CIRCLE***
110 LPRINT CHR$(18)
120 PAI=3.14159:A=240
130 FOR L=0 TO 240 STEP 10
140 LPRINT "M"+STR$(240+L)+",-240"
150 FOR TH=0 TO 2*PAI STEP PAI/16
160 X=l*COS(TH)
170 Y=(A-L)*SIN(TH)
180 GX=240+X
190 GY=-240+Y
200 LPRINT "D"+STR$(GX)+","+STR$(GY)
210 NEXT H
220 NEXT L
230 LPRINT "A"
240 END

0 comments on commit 0f967e6

Please sign in to comment.