Skip to content

Instantly share code, notes, and snippets.

Avatar

Will mon

View GitHub Profile
@mon
mon / floodfill.py
Created Jan 12, 2020
Very slow and very messy floodfill animation
View floodfill.py
import os
from statistics import mean
from PIL import Image
from tqdm import tqdm
# render frames with
# ffmpeg -framerate 60 -pattern_type glob -i '*.png' -vf "pad=ceil(iw/2)*2:ceil(ih/2)*2" -c:v libx264 -pix_fmt yuv420p out.mp4
source_img = 'tfoust10.jpg'
@mon
mon / SDVX.ino
Created Jul 22, 2016
Super simple SDVX controller with fading lights
View SDVX.ino
// You will need the SoftPWM and Encoder libraries, available from
// the teensy website. Google!
// Edit the fade time to your liking.
// Edit the pins and keys if you use different ones.
// ENCODER PINS MUST BE 0, 1, 2, 3 FOR BEST PERFORMANCE
// Everything else can go wherever.
#include <Keyboard.h>
#include <Mouse.h>
You can’t perform that action at this time.