from kandinsky import * from math import sin, cos, pi WIDTH = 320 HEIGHT = 222 stick_length = 60 stick_thickness = 5 stick_color = color(255, 0, 0) # Red center_x = WIDTH // 2 center_y = HEIGHT // 2 rotation_speed = 0.03 # Adjust this for the rotation speed angle = 0 while True: fill_rect(0,0,322,222,"white") for i in range(stick_thickness): x1 = center_x + int((stick_length + i) * cos(angle)) y1 = center_y + int((stick_length + i) * sin(angle)) x2 = center_x + int((stick_length + i + 10) * cos(angle)) y2 = center_y + int((stick_length + i + 10) * sin(angle)) fill_rect(x1, y1, x2, y2, stick_color) angle += rotation_speed