aboutsummaryrefslogtreecommitdiffstats
path: root/examples/place_in_rect.lua
diff options
context:
space:
mode:
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