Skip to content

Instantly share code, notes, and snippets.

View benekastah's full-sized avatar

Paul Harper benekastah

  • San Francisco
View GitHub Profile
import random
import subprocess, sys, time
FRAME_RATE = 30
def wrap_pos(pos: int, canvas_size: int):
while True:
pos %= canvas_size
yield pos
pos += 1