2020-12-27 01:22:18 +00:00
|
|
|
%import test_stack
|
|
|
|
%import textio
|
2020-12-22 23:54:11 +00:00
|
|
|
%zeropage basicsafe
|
2020-12-08 00:02:38 +00:00
|
|
|
%option no_sysinit
|
|
|
|
|
2020-12-08 21:54:20 +00:00
|
|
|
main {
|
2020-12-21 23:59:07 +00:00
|
|
|
|
2020-12-27 02:35:56 +00:00
|
|
|
|
2020-12-22 04:43:02 +00:00
|
|
|
sub start () {
|
2020-12-27 22:57:13 +00:00
|
|
|
|
|
|
|
; TODO uword var = rndw() % 640 doesn't work??? works if its in an expression.
|
|
|
|
|
|
|
|
x_f = -300.0
|
|
|
|
for ww in -300 to 300 {
|
|
|
|
;fl = ww as float / 10.0 ; TODO doesn't work???
|
|
|
|
y_f = cos(x_f/30)*60 - x_f/1.7
|
|
|
|
gfx2.plot(ww + 320 as uword, (y_f + 240) as uword, 1)
|
|
|
|
x_f += 1.0
|
2020-12-27 17:12:12 +00:00
|
|
|
}
|
2020-12-27 22:57:13 +00:00
|
|
|
|
2020-12-03 17:39:32 +00:00
|
|
|
}
|
2020-12-26 00:25:52 +00:00
|
|
|
|
2020-12-27 17:12:12 +00:00
|
|
|
|
2020-08-27 17:47:50 +00:00
|
|
|
}
|