Open Selvam-Lathursan opened 1 year ago
import turtle
from itertools import cycle colors = cycle(['red','orange','yellow','green', 'blue','purple','pink'])
def draw_circle(size,angle,shift): turtle.bgcolor(next(colors)) turtle.pencolor(next(colors)) turtle.circle(size) turtle.right(angle) turtle.forward(shift) draw_circle(size+5, angle+1,shift+1)
turtle.bgcolor('black') turtle.speed('fast') turtle.pensize(15) draw_circle(30,0,1)
3rdactivity
3rd activity
import turtle
from itertools import cycle colors = cycle(['red','orange','yellow','green', 'blue','purple','pink'])
def draw_circle(size,angle,shift): turtle.bgcolor(next(colors)) turtle.pencolor(next(colors)) turtle.circle(size) turtle.right(angle) turtle.forward(shift) draw_circle(size+5, angle+1,shift+1)
turtle.bgcolor('black') turtle.speed('fast') turtle.pensize(15) draw_circle(30,0,1)