diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2019-11-01 20:04:18 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2019-11-01 20:04:18 +0000 |
| commit | 5934b80f09c1c13fa4698e59a77d0c51b7c7b357 (patch) | |
| tree | 265742939a732b06a224d870026b22e1154add71 /examples | |
| parent | API redesign (diff) | |
| download | watch-cad-5934b80f09c1c13fa4698e59a77d0c51b7c7b357.tar.gz watch-cad-5934b80f09c1c13fa4698e59a77d0c51b7c7b357.zip | |
make things work
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/demo.moon | 7 |
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 |
