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 🌋
TLDR (if you’re using a python >= 3.7)
pip install "coldtype[viewer]" coldtype demo
Here’s an example:
from coldtype import * fnt = Font.Cacheable("assets/ColdtypeObviously-VF.ttf") @renderable((700, 350)) def coldtype_simple(r): return (StSt("COLDTYPE", fnt, 350, wdth=0, tu=20, r=1, rotate=10) .align(r) .f(hsl(0.65, 0.6)))
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: https://github.com/goodhertz/coldtype/tree/main/examples/animations/808.py
Table of Contents¶
- Type Design
- After Effects