I am trying to implement elementary graphics stuffs in Julia, like displaying a circle whose size would change based on the value set by the user on a slider.
My code:
using Luxor, Interact;
@png begin
s = slider(0:.1:1,label="Slider X:")
#display(s)
#display(observe(s));
#text("Hello world")
circle(0, 0, observe(s), action=:nothing)
#display(s)
#circle(Point(0, 0), 200, :stroke)
end
Can you guys suggest a better way to try this? My permutations keep giving errors.
the error suggests that you should use a Point. The manual describes all the available forms for box()here. The tutorial might be worth looking at too…