Last active
July 26, 2021 10:31
-
-
Save Sov-trotter/6141ed9bed79bdb4a7b1a40b00227175 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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