Skip to main content

Command Palette

Search for a command to run...

WCCCxGenuary2026_Write

Mapping and Moving Grids

Updated
2 min read
WCCCxGenuary2026_Write

HeatMappingLetters

For this week's Creative Code challenge by @sableRaph & Prompt 5 of Genuary 2026: “Write Genuary without a Font”, HeatMappingLetters uses heatmaps from Python and cueing from LiveCodingYoutube to achieve this prompt.

Poetry

Fontless but able to Write
Fontless but able to spell
For the new year is coming before the bell
As there are more algorithmic delights 
Coming to light

Video

Code

Python

import numpy as np
import seaborn as sns
import matplotlib.pylab as plt

G = [[11,11,11,11,11,11],
               [11,5,4,3,2,0],
               [11,6,5,3,1,8],
               [11,1,8,11,11,11],
               [11,0,5,4,7,11],
               [11,11,11,11,11,11]]

E = [[11,11,11,11,11,11],
     [11,5,4,3,2,0],
     [11,11,11,11,11,11],
     [11,11,11,11,11,11],
     [11,0,5,4,7,6],
     [11,11,11,11,11,11]]

N = [[11,1,3,5,7,11],
     [11,11,4,3,8,11],
     [11,2,11,6,0,11],
     [11,4,0,11,6,11],
     [11,3,2,5,11,11],
     [11,6,1,2,8,11]]

U = [[11,1,3,5,7,11],
     [11,6,4,3,8,11],
     [11,2,1,6,0,11],
     [11,4,0,4,6,11],
     [11,9,7,5,6,11],
     [11,11,11,11,11,11]]

A = [[11,11,11,11,11,11],
     [11,6,4,3,8,11],
     [11,11,11,11,11,11],
     [11,4,0,4,6,11],
     [11,9,7,5,6,11],
     [11,3,5,7,3,11]]

R = [[11,11,11,11,11,11],
     [11,3,4,3,4,11],
     [11,11,11,11,11,11],
     [11,4,0,11,2,0],
     [11,2,7,0,11,1],
     [11,1,5,7,3,11]]

Y = [[11,5,4,2,3,11],
     [1,11,4,3,11,4],
     [4,11,11,11,2,0],
     [0,4,0,11,2,3],
     [0,9,7,11,2,3],
     [0,3,5,11,3,3]]

#punctation
I = [[1,0,2,11,3,2],
     [1,0,4,11,3,4],
     [1,4,4,11,2,0],
     [1,2,3,11,4,3],
     [1,2,1,1,1,1],
     [1,1,1,11,1,1]]

def battle(letter):

    spelling = letter

    return spelling



def plotting(x,color):
    letters = ['A','B','C','D','E','F'] #set for the columns
    uniform_data = x
    ax = sns.heatmap(uniform_data, linewidth=0.5,cmap=color) 
    ax.set_xticklabels(letters) #setting the ticks of the x axis to letters
    plt.show()
    return x
def Lettering(x):
    plotting(battle(x),"Reds")
    plotting(battle(x),"Greens")
    plotting(battle(x),"Blues")
    plotting(battle(x),"Oranges")
    plotting(battle(x),"coolwarm")
    plotting(battle(x),"YlOrBr")
    plotting(battle(x),"BuPu")
    plotting(battle(x),"YlGnBu")

LiveCodingYoutube

G = '4GBtII83XLo'
E = 'CCHhvy5_I2o'
N = 'VFovOALD7ag'
U = 'edtxJKhUiX8'
A = 'CaxHn1K7s-4'
R = 'U5LjqeySICk'
Y = 'AkbKLT45Bss'
I = 'atoHB-Zgh7A'

create(2,4,G)
cue(1,E)
cue(2,N)
cue(3,U)
cue(4,A)
cue(5,R)
cue(6,Y)
cue(7,I)

speed(5,all)
speed(2,7)
play(all)

speed([1,3,5,7],12)
speed([0,2,4,6],-5)