squares = []

squares.append(Square(x=20, y=50, width=20, height=20, rotation=45, color=['orange', 'green']))
squares.append(Square(x=35, y=65, width=20, height=20, rotation=45, color=['green', 'grey']))
squares.append(Square(x=35, y=35, width=20, height=20, rotation=45, color=['red', 'orange']))
squares.append(Square(x=50, y=50, width=20, height=20, rotation=45, color=['white', 'pink']))
squares.append(Square(x=50, y=80, width=20, height=20, rotation=45, color=['black','gray']))
squares.append(Square(x=50, y=20, width=20, height=20, rotation=45, color=['yellow', 'blue']))
squares.append(Square(x=65, y=35, width=20, height=20, rotation=45, color=['gray','black','white']))
squares.append(Square(x=65, y=65, width=20, height=20, rotation=45, color=['purple', 'pink']))
squares.append(Square(x=80, y=50, width=20, height=20, rotation=45, color=['blue','green']))

import random

for i in range(1000):
    for square in squares:
        with animation(duration=0):
            square.rotation = random.randint(0, 360)

Lucy's Square Experiment

by lucykjoyner

Created 1 year, 7 months ago.
Based on Square Experiment by James2u.