79180228

Date: 2024-11-12 07:55:05
Score: 1
Natty:
Report link

enter image description here import turtle from turtle import Turtle, Screen import random

tim = turtle
tim.colormode(255)


def random_colors():
    r = random.randint(0, 255)
    g = random.randint(0, 255)
    b = random.randint(0, 255)
    colors = (r, g, b)
    return colors


tim.speed(1000)


def draw_spirograph(size_of_gap):
    for i in range(int(360 / size_of_gap)):  
        tim.color(random_colors())
        tim.circle(100) 
        tim.setheading(tim.heading() + size_of_gap)


draw_spirograph(5)

screen = Screen()
screen.exitonclick()
Reasons:
  • Blacklisted phrase (1): enter image description here
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Joyal susilan