2024-03-03 21:35:54 +00:00
|
|
|
%import math
|
2024-03-03 20:47:42 +00:00
|
|
|
%import monogfx
|
2023-12-31 00:02:33 +00:00
|
|
|
|
2024-01-07 17:48:18 +00:00
|
|
|
main {
|
2024-03-02 13:26:02 +00:00
|
|
|
sub start() {
|
2024-03-05 22:42:35 +00:00
|
|
|
monogfx.hires()
|
2024-03-03 21:35:54 +00:00
|
|
|
monogfx.drawmode(monogfx.MODE_INVERT)
|
2024-02-21 22:10:04 +00:00
|
|
|
|
2024-03-05 21:38:34 +00:00
|
|
|
ubyte tt
|
2024-03-03 21:35:54 +00:00
|
|
|
|
|
|
|
repeat {
|
2024-03-05 21:38:34 +00:00
|
|
|
ubyte tts=tt
|
2024-03-05 22:42:35 +00:00
|
|
|
word x1 = math.sin8(tts)
|
|
|
|
word y1 = math.cos8(tts)
|
2024-03-05 21:38:34 +00:00
|
|
|
tts += 256/3
|
2024-03-05 22:42:35 +00:00
|
|
|
word x2 = math.sin8(tts)
|
|
|
|
word y2 = math.cos8(tts)
|
2024-03-05 21:38:34 +00:00
|
|
|
tts += 256/3
|
2024-03-05 22:42:35 +00:00
|
|
|
word x3 = math.sin8(tts)
|
|
|
|
word y3 = math.cos8(tts)
|
|
|
|
monogfx.line(320+x1*2 as uword, 240+y1 as uword, 320+x2 as uword, 240+y2 as uword, true)
|
|
|
|
monogfx.line(320+x2*2 as uword, 240+y2 as uword, 320+x3 as uword, 240+y3 as uword, true)
|
|
|
|
monogfx.line(320+x3*2 as uword, 240+y3 as uword, 320+x1 as uword, 240+y1 as uword, true)
|
2024-03-05 21:38:34 +00:00
|
|
|
tt++
|
2024-03-03 21:35:54 +00:00
|
|
|
}
|
2024-03-01 18:45:16 +00:00
|
|
|
}
|
|
|
|
}
|