YITExperiment / ppv2_level-3-Selvam-Lathursan

ppv2_level-3-Selvam-Lathursan created by GitHub Classroom
0 stars 0 forks source link

Kaleido_spiral.py #5

Open Selvam-Lathursan opened 1 year ago

Selvam-Lathursan commented 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)

Selvam-Lathursan commented 1 year ago

3rdactivity

Selvam-Lathursan commented 1 year ago

3rd activity