Exploring Coldtype

Animation + Typography + Code

Lately, I’ve been experimenting with code-generated animations, combining Python with the Coldtype library. This article is just a showcase of some of those experiments.

{{< video src=“/video/outpactGridAnim1.mp4” type=“video/mp4” controls=“false” autoplay=“true” loop=“true” muted=“false” >}}

All animations are generated directly from Python scripts, using typographic shapes as a base to play with motion, timing, and curve transformation.

{{< video src=“/video/IMG_4801.mp4” type=“video/mp4” controls=“false” autoplay=“true” loop=“true” muted=“false” width=“320px”>}}

{{< video src=“/video/board.mp4” type=“video/mp4” controls=“false” autoplay=“true” loop=“true” muted=“false” >}} {{< video src=“/video/IMG_4799.mp4” type=“video/mp4” controls=“false” autoplay=“true” loop=“true” muted=“false” width=“320px”>}}

Here’s the sample code

from PIL import Image, ImageDraw
import numpy as np
import os

def hex_to_rgb(hex_color):
    hex_color = hex_color.lstrip("#")
    if len(hex_color) == 6:
        return tuple(int(hex_color[i:i+2], 16) for i in (0, 2, 4))
    elif len(hex_color) == 8:
        return tuple(int(hex_color[i:i+2], 16) for i in (0, 2, 4, 6))
    else:
        raise ValueError("Hex color must have 6 (RGB) or 8 (RGBA) digits.")