Skip to content

Instantly share code, notes, and snippets.

@Sov-trotter
Last active July 26, 2021 10:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sov-trotter/6141ed9bed79bdb4a7b1a40b00227175 to your computer and use it in GitHub Desktop.
Save Sov-trotter/6141ed9bed79bdb4a7b1a40b00227175 to your computer and use it in GitHub Desktop.
using Revise, Javis
function ground(args...)
background("black")
sethue("white")
end
astar(args...; do_action=:stroke) = star(O, 50, 5, 0.5, 0, do_action)
abox(args...; do_action=:stroke) = rect(-50,-50, 100, 100, do_action)
acirc(args...; color = "red", do_action=:stroke) = circle(Point(0, 0), 50, do_action)
video = Video(500, 500)
back = Background(1:50, ground)
star_obj = Object(1:50, abox)
act!(star_obj, Action(10:20, morph_to(acirc)))
act!(star_obj, Action(30:40, anim_translate(Point(100, -100))))
act!(star_obj, Action(50:60, morph_to(astar)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment