rainbow.py

Created by schraf

Created on November 10, 2022

423 Bytes


import turtle
from kandinsky import fill_rect

t = turtle 

fill_rect(0,0,320,222,(240,250,255))

clr = ((238,130,238), (76,14,130), (0,40,255),\
       (10,128,0), (255,255,0), (255,165,0), (255,10,0))  
  
t.rt(-90)  
t.width(11)  
t.speed(8)  
  
for j in range(7):
     t.color(clr[j])  
     t.up()  
     t.goto(80+10*j, -100)  
     t.pd()
     t.circle(10*(j + 8), -180)  
     t.rt(180) 
  
t.ht()