1 # Here's one way to draw a rectangle from the top-left corner of screen.
2 # Lots of other solutions are possible.
3 fn main screen: (addr screen) {
4 draw-line screen, 1/x1 1/y1, 0x300/x2 1/y2, 3/color=green
5 draw-line screen, 1/x1 0x200/y1, 0x300/x2 0x200/y2, 3/color=green
6 draw-line screen, 1/x1 1/y1, 1/x2 0x200/y2, 3/color=green
7 draw-line screen, 0x300/x1 1/y1, 0x300/x2 0x200/y2, 3/color=green