aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2019-11-01 20:04:18 +0000
committers-ol <s-ol@users.noreply.github.com>2019-11-01 20:04:18 +0000
commit5934b80f09c1c13fa4698e59a77d0c51b7c7b357 (patch)
tree265742939a732b06a224d870026b22e1154add71 /examples
parentAPI redesign (diff)
downloadwatch-cad-5934b80f09c1c13fa4698e59a77d0c51b7c7b357.tar.gz
watch-cad-5934b80f09c1c13fa4698e59a77d0c51b7c7b357.zip
make things work
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