Coldtype is a cross-platform library for programming and animating display typography with Python.

Put another way: do you want to make typographic 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 & highly abbreviated, with a idiomatic emphasis on method-chaining & structured data (which can make programming animations a lot easier and faster). More on those bold words on the about page.

A more complex example

Here’s a somewhat complex animation — made entirely with coldtype — demonstrating what’s possible with not-so-much code:

The code for that video is available here:

Indices and tables