aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/demo.moon7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/demo.moon b/examples/demo.moon
new file mode 100644
index 0000000..cb2531f
--- /dev/null
+++ b/examples/demo.moon
@@ -0,0 +1,7 @@
+import vec2 from require 'cpml'
+
+=>
+ a = input.point @point, x: 200
+ rect = input.rectangle @rect, min: a + (vec2 30, 0), max: { y: 200 }
+
+ circle = input.circle @circ, center: rect.min, tangent: rect.max