circle03.py

Created by schraf

Created on October 20, 2022

507 Bytes


import turtle
from math import *
from kandinsky import fill_rect

fill_rect(0,0,320,222,(30, 50, 49))

t = turtle
t.speed(0) ; t.hideturtle()

for r in range(2,11):
  d = int(5 + 5 *r * r / 8)
  t.penup()
  t.goto(d,0)
  (x,y) = t.position()
  for i in range(60):
    t.penup()
    t.goto(x,y)
    t.setheading(90)
    t.color((246, 192, 208) if (i%10) <= 3 else (142, 124, 147))    
    t.circle(d, 6 * i + 10 *r)
    t.pendown()
    t.pensize(min(r,2+(i%10)))
    t.goto(t.position())