2024-03-03 22:35:54 +01:00
|
|
|
%import math
|
2024-03-03 21:47:42 +01:00
|
|
|
%import monogfx
|
2023-12-31 01:02:33 +01:00
|
|
|
|
2024-01-07 18:48:18 +01:00
|
|
|
main {
|
2024-03-02 14:26:02 +01:00
|
|
|
sub start() {
|
2024-03-05 23:42:35 +01:00
|
|
|
monogfx.hires()
|
2024-03-03 22:35:54 +01:00
|
|
|
monogfx.drawmode(monogfx.MODE_INVERT)
|
2024-02-21 23:10:04 +01:00
|
|
|
|
2024-03-05 22:38:34 +01:00
|
|
|
ubyte tt
|
2024-03-03 22:35:54 +01:00
|
|
|
|
|
|
|
repeat {
|
2024-03-05 22:38:34 +01:00
|
|
|
ubyte tts=tt
|
2024-03-05 23:42:35 +01:00
|
|
|
word x1 = math.sin8(tts)
|
|
|
|
word y1 = math.cos8(tts)
|
2024-03-05 22:38:34 +01:00
|
|
|
tts += 256/3
|
2024-03-05 23:42:35 +01:00
|
|
|
word x2 = math.sin8(tts)
|
|
|
|
word y2 = math.cos8(tts)
|
2024-03-05 22:38:34 +01:00
|
|
|
tts += 256/3
|
2024-03-05 23:42:35 +01: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 22:38:34 +01:00
|
|
|
tt++
|
2024-03-03 22:35:54 +01:00
|
|
|
}
|
2024-03-01 19:45:16 +01:00
|
|
|
}
|
|
|
|
}
|