Skip to content

Instantly share code, notes, and snippets.

View gambingo's full-sized avatar

Joseph Gambino gambingo

View GitHub Profile
@gambingo
gambingo / digital_clock.py
Last active June 11, 2023 19:45
For our exploration of drawing faux-digits, this function draws every possible combination that can be displayed on a standard digital clock. It saves each as a PNG.
import matplotlib.pyplot as plt
# Vertices of the digit, starting at the origin, moving clockwise
POINTS = {
"A": [0, 0],
"B": [0, 1],
"C": [0, 2],
"D": [1, 2],
"E": [1, 1],