aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2019-11-19 21:47:01 +0000
committers-ol <s-ol@users.noreply.github.com>2019-11-19 22:03:16 +0000
commit687bd8a762994be432859331c6bf5b795be44c30 (patch)
treec68d38bfedce0cf778358be1d8a6ddfbaf48b887 /examples
parentadd EX mode, script name display (diff)
downloadwatch-cad-687bd8a762994be432859331c6bf5b795be44c30.tar.gz
watch-cad-687bd8a762994be432859331c6bf5b795be44c30.zip
a touch of color
Diffstat (limited to 'examples')
-rw-r--r--examples/create_star.lua5
1 files changed, 1 insertions, 4 deletions
diff --git a/examples/create_star.lua b/examples/create_star.lua
index 078f5df..197180c 100644
--- a/examples/create_star.lua
+++ b/examples/create_star.lua
@@ -15,12 +15,9 @@ function draw_star(S)
local r = (i % 2 == 0) and inner.radius or outer.radius
local pos = inner.center + vec2.from_cartesian(r, step * i)
- draw.cross(pos)
+ op.add(pos, vec2(20, 20))
draw.line(pos, lag)
- -- obj = Object("object_"..i, pos, vec2(20, 20))
- -- op.add(obj)
-
lag = pos
end
end