prog8/examples/test.p8

36 lines
741 B
Plaintext
Raw Normal View History

2024-03-03 21:35:54 +00:00
%import math
2024-03-03 20:47:42 +00:00
%import monogfx
main {
sub start() {
2024-03-03 20:47:42 +00:00
monogfx.lores()
2024-03-03 21:35:54 +00:00
monogfx.drawmode(monogfx.MODE_INVERT)
2024-03-03 20:47:42 +00:00
uword x1, x2
uword y1, y2
2024-03-03 21:35:54 +00:00
repeat 200 {
2024-03-03 20:47:42 +00:00
x1 = math.rnd()
y1 = math.rnd() % 240
x2 = math.rnd()
y2 = math.rnd() % 240
monogfx.line(x1, y1, x2, y2, true)
}
2024-03-03 21:35:54 +00:00
repeat 5 {
for cx16.r9L in 0 to 200 {
monogfx.vertical_line(cx16.r9L, 10, 200, true)
}
}
monogfx.disc(160, 120, 100, true)
monogfx.fillrect(20, 100, 280, 50, true)
monogfx.drawmode(monogfx.MODE_STIPPLE)
monogfx.fillrect(80, 10, 50, 220, true)
repeat {
}
2024-03-01 18:45:16 +00:00
}
}