aboutsummaryrefslogtreecommitdiffstats
path: root/examples/place_in_rect.lua
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2019-11-13 12:02:35 +0000
committers-ol <s-ol@users.noreply.github.com>2019-11-13 12:02:47 +0000
commitb651f4dbcbec7eccfcb90ea2b23e28d988e36026 (patch)
treeaea6d2ef5f3420bde3fc7fe5c0727d6bd85fb8b3 /examples/place_in_rect.lua
parentadd input.slider (diff)
downloadwatch-cad-b651f4dbcbec7eccfcb90ea2b23e28d988e36026.tar.gz
watch-cad-b651f4dbcbec7eccfcb90ea2b23e28d988e36026.zip
add line, arrow; hover events
Diffstat (limited to 'examples/place_in_rect.lua')
-rw-r--r--examples/place_in_rect.lua17
1 files changed, 0 insertions, 17 deletions
diff --git a/examples/place_in_rect.lua b/examples/place_in_rect.lua
deleted file mode 100644
index 3650257..0000000
--- a/examples/place_in_rect.lua
+++ /dev/null
@@ -1,17 +0,0 @@
--- return function (state)
-function place_in_rect(S)
- input.selection(S.objs, '^led-')
- input.rect(S.dest)
-
- local start = S.min()
- local step = S.dest():size()
- step.y = 0
-
- for i, obj in ipairs(S.objs()) do
- local pos = start + step:scale(i)
- draw.cross(pos)
- -- op.move(obj, pos)
- end
-end
-
-return place_in_rect