Skip to content

Planes

from gridmas import *
import random


name = "Planes"
author = "Ciaran"
# based on Matt Parkers Xmas tree


speed = RangeAttr("speed", 45, 30, 45, 1)

def draw():
    color = Color(255, 255, 0)
    while True:
        theta = random.uniform(0, 6.28)
        alpha = random.uniform(0, 6.28)
        yield from wipe_frames(theta, alpha, color, int(speed.get()))
        color = Color.different_from(color)