aboutsummaryrefslogtreecommitdiffstats
path: root/examples/axis_lock.moon
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2019-11-22 18:29:05 +0000
committers-ol <s-ol@users.noreply.github.com>2019-11-22 18:29:05 +0000
commit670fa39a8feed54b9d11ae9cf5768e3bb4059f02 (patch)
tree1ae4a89171fb80e9cd098b93e760651a91c948dd /examples/axis_lock.moon
parentmore examples (diff)
downloadwatch-cad-670fa39a8feed54b9d11ae9cf5768e3bb4059f02.tar.gz
watch-cad-670fa39a8feed54b9d11ae9cf5768e3bb4059f02.zip
move examples to library folder
Diffstat (limited to 'examples/axis_lock.moon')
-rw-r--r--examples/axis_lock.moon17
1 files changed, 0 insertions, 17 deletions
diff --git a/examples/axis_lock.moon b/examples/axis_lock.moon
deleted file mode 100644
index 91a85fd..0000000
--- a/examples/axis_lock.moon
+++ /dev/null
@@ -1,17 +0,0 @@
-import vec2 from require 'cpml'
-
-=>
- -- draw helper lines
- origin = vec2 200, 600
- draw.line origin, vec2 200, 0
- draw.line origin, vec2 1000, 600
-
- -- input two points
- input.line @l, { x: 200 }, { y: 600 }
-
- -- restrict to first quadrant
- if @l!.frm.y > 600
- @l!.frm.y = 600
-
- if @l!.to.x < 200
- @l!.to.x = 200