about summary refs log tree commit diff stats
path: root/tutorial/task12.mu
diff options
context:
space:
mode:
Diffstat (limited to 'tutorial/task12.mu')
-rw-r--r--tutorial/task12.mu6
1 files changed, 6 insertions, 0 deletions
diff --git a/tutorial/task12.mu b/tutorial/task12.mu
new file mode 100644
index 00000000..1f35be21
--- /dev/null
+++ b/tutorial/task12.mu
@@ -0,0 +1,6 @@
+fn main screen: (addr screen) {
+  draw-line screen, 0x100/x1 0x100/y1, 0x300/x2 0x100/y2, 3/color=green
+  draw-line screen, 0x100/x1 0x200/y1, 0x300/x2 0x200/y2, 3/color=green
+  draw-line screen, 0x100/x1 0x100/y1, 0x100/x2 0x200/y2, 3/color=green
+  draw-line screen, 0x300/x1 0x100/y1, 0x300/x2 0x200/y2, 3/color=green
+}