diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2019-11-22 18:29:05 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2019-11-22 18:29:05 +0000 |
| commit | 670fa39a8feed54b9d11ae9cf5768e3bb4059f02 (patch) | |
| tree | 1ae4a89171fb80e9cd098b93e760651a91c948dd /examples/axis_lock.moon | |
| parent | more examples (diff) | |
| download | watch-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.moon | 17 |
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 |
