Skip to content

chalk-diagrams/animation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Animations in Chalk.

⚠️ Work in progress

Current example:

from colour import Color
from chalk import circle, rectangle

from animation.core import constant, animation, render_gif
from animation.active import stretch

papaya = Color("#ff9700")
blue = Color("#005FDB")

obj = circle(1).fill_color(blue)
frame = rectangle(6, 3).fill_color(papaya)

anim = constant(frame) + animation(lambda t: obj.translate(2 * t - 1, 0))
anim = stretch(anim, 3)
render_gif(anim, "examples/output/demo.gif", 24)

demo

For a more elaborate example, see examples/pythagoras.py.

pythagoras

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages