Created
April 16, 2022 10:44
-
-
Save razetime/a8f2ee96a89ec4385a6b7c05039ffe4f to your computer and use it in GitHub Desktop.
translating a circle
This file contains hidden or 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
# 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