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",
         350, wdth=0, tu=20, r=1, rotate=10, ro=1))
      .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.

An example

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:

Here are some more examples:

Indices and tables