Skip to content

Instantly share code, notes, and snippets.

View controversial's full-sized avatar
🧙‍♂️
doing magic

Luke Deen Taylor controversial

🧙‍♂️
doing magic
View GitHub Profile
@controversial
controversial / CoverFlow.py
Last active September 7, 2015 18:00
CoverFlow.py
import ui
from PIL import Image
from io import BytesIO
from math import exp, log, copysign, ceil
BGCOLOR = '#0F0F0F'
def pil_to_ui(img):
b = BytesIO()
img.save(b, "PNG")
@controversial
controversial / MotionColors.py
Created August 29, 2015 22:08
MotionColors.py
from scene import *
import motion
def mean(list1, limit=0):
'''
Find the mean of values in a list.
Options:
list1- the inout list of integers
limit- how many of the most recent items to include. 0 to include all.
'''
@controversial
controversial / sierpinski.py
Created August 16, 2015 12:53
sierpinski.py
# coding: utf-8
from images2gif import writeGif
from PIL import Image, ImageDraw
import console
W, H = 1024,1024
RESOLUTION = 5
import turtle
t = turtle.Pen()
t.ht()
t.speed(0)
turtle.colormode(255)
rgb = [255, 0, 0]
def progressrainbow(rgb):
new = []