🧙♂️
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | |
''' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
from images2gif import writeGif | |
from PIL import Image, ImageDraw | |
import console | |
W, H = 1024,1024 | |
RESOLUTION = 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import turtle | |
t = turtle.Pen() | |
t.ht() | |
t.speed(0) | |
turtle.colormode(255) | |
rgb = [255, 0, 0] | |
def progressrainbow(rgb): | |
new = [] |
NewerOlder