Skip to content

Commit

Permalink
Bug fixes for leaf.bas and circles.bas
Browse files Browse the repository at this point in the history
  • Loading branch information
visrealm committed Jun 15, 2024
1 parent 8487c2c commit 5b83903
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions code/6502/basic/programs/circles.bas
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
10 DISPLAY 2
20 I = 0
30 R = INT(RND(0)*80)
20 I = 0
20 R=RND(1):R = INT(RND(0)*80)
40 INC I
50 IF I > 10 GOTO 10
60 CX = INT(RND(0)*(255-R*2))+R
Expand Down
4 changes: 2 additions & 2 deletions code/6502/basic/programs/leaf.bas
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
10 DISPLAY 2: COLOR $31
10 DISPLAY 2: COLOR $31: R=RND(1)
20 T=0:Y=0
30 FOR I=0 TO 6E4
40 X=T:XP=INT(25*Y):YP=INT(-36*X)+96
Expand All @@ -12,4 +12,4 @@
120 T=-.15*X+.28*Y:Y=.26*X+.24*Y+.44:RETURN
130 IF RP < 21 THEN COLOR $21: RETURN
140 IF RP < 42 THEN COLOR $31: RETURN
150 COLOR $C1: RETURN
150 COLOR $C1: RETURN

0 comments on commit 5b83903

Please sign in to comment.