mirror of
https://github.com/dschmenk/PLASMA.git
synced 2026-04-27 03:18:02 +00:00
Add hires turtle graphics sample
This commit is contained in:
1 parent
4172c2c5e4
commit
15488e61c7
3 files changed
+36
-4
No files matched your search
@@ -0,0 +1,32 @@
|
||||
LOOKUP HRFORTH ( HGR page 1 reserved )
|
||||
NOT ?ABORT" Must run with HRFORTH."
|
||||
|
||||
SRC" PLASMA.4TH"
|
||||
SRC" CONIO.4TH"
|
||||
SRC" HGRLIB.4TH"
|
||||
SRC" TURTLE.4TH"
|
||||
|
||||
: SHOW
|
||||
0 HGRMODE HGRDRAWBUF TILEDRAWBUF DROP
|
||||
280 192 INITTURTLE
|
||||
1 HGRCOLOR
|
||||
;
|
||||
|
||||
: SQUARE
|
||||
DUP MOVEFORWARD 90 TURNRIGHT
|
||||
DUP MOVEFORWARD 90 TURNRIGHT
|
||||
DUP MOVEFORWARD 90 TURNRIGHT
|
||||
MOVEFORWARD 90 TURNRIGHT
|
||||
;
|
||||
|
||||
: SPIN
|
||||
360 0 DO
|
||||
50 SQUARE
|
||||
I TURNTO
|
||||
10 +LOOP
|
||||
;
|
||||
|
||||
: SPIN
|
||||
SHOW
|
||||
SPIN
|
||||
;
|
||||
Reference in new issue
Block a user