From 687bd8a762994be432859331c6bf5b795be44c30 Mon Sep 17 00:00:00 2001 From: s-ol Date: Tue, 19 Nov 2019 22:47:01 +0100 Subject: a touch of color --- examples/create_star.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'examples/create_star.lua') 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 -- cgit v1.2.3