Coldtype is a cross-platform library for programming and animating high-quality display typography with Python.
Put another way: do you want to make graphics and animations with code? This is a good & idiosyncratic way to do that.
🌋 Disclaimer: coldtype is alpha-quality software 🌋
Here’s an example:
from coldtype import * @renderable((700, 350)) def coldtype(r): return (StyledString("COLDTYPE", Style("assets/ColdtypeObviously-VF.ttf", 350, wdth=0, tu=20, r=1, rotate=10, ro=1)) .pens() .align(r) .f(Gradient.Horizontal(r, hsl(0.69, s=1, l=0.55), hsl(0.55, s=1, l=0.6))) .translate(0, 5))
If you’re familiar with other graphics programming libraries, that code snippet might seem a little odd, given that it’s canvas-less & abbreviated, with a idiomatic emphasis on method-chaining & hierarchical data (which can make programming animations a lot easier and faster). More on those bold words on the about page.
Table of Contents¶
Here’s a somewhat complex animation — made with a combination of coldtype and After Effects — demonstrating what’s possible with not-so-much code:
The code for that video is available here: https://github.com/goodhertz/coldtype-examples/blob/main/animations/808.py
Here are some more examples: