Skip to content

Instantly share code, notes, and snippets.

@Sov-trotter
Created July 24, 2021 19:21
Show Gist options
  • Save Sov-trotter/0612411203fbc4d66a62f7e8807eb6eb to your computer and use it in GitHub Desktop.
Save Sov-trotter/0612411203fbc4d66a62f7e8807eb6eb to your computer and use it in GitHub Desktop.
using Revise, Javis
function ground(args...)
background("black")
sethue("white")
end
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(20:40,morph_to(acirc, style = :long)))
render(video, pathname = "testmorph.gif")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment