Add rounding to sin/cos calc to improve accuracy

This commit is contained in:
David Schmenk committed 2025-12-01 19:24:44 -08:00
1 parent 15488e61c7
commit af2e3143f6
2 files changed
+20 -13

No files matched your search

+4 -2
View File
@@ -9,7 +9,7 @@ SRC" TURTLE.4TH"
: SHOW
0 HGRMODE HGRDRAWBUF TILEDRAWBUF DROP
280 192 INITTURTLE
1 HGRCOLOR
3 HGRCOLOR
;
: SQUARE
@@ -20,7 +20,7 @@ SRC" TURTLE.4TH"
;
: SPIN
360 0 DO
361 0 DO
50 SQUARE
I TURNTO
10 +LOOP
@@ -30,3 +30,5 @@ SRC" TURTLE.4TH"
SHOW
SPIN
;
SHOW SPIN