Skip to content

Instantly share code, notes, and snippets.

@razetime
Created April 16, 2022 10:44
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 razetime/a8f2ee96a89ec4385a6b7c05039ffe4f to your computer and use it in GitHub Desktop.
Save razetime/a8f2ee96a89ec4385a6b7c05039ffe4f to your computer and use it in GitHub Desktop.
translating a circle
# Based on Josh Pullen's translation animation:
# https://twitter.com/PullJosh/status/1453393772314718215
using Javis
using Animations
function ground(args...)
background("white")
sethue("black")
end
function grid()
sethue("black")
draw_grid(direction = "TL", line_gap = 25)
end
video = Video(500, 300)
Background(1:100, ground)
Object(1:2, grid())
render(video; pathname = "translate.gif")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment