Monday, October 24, 2022

Python Turtle Graphics Design #2

 Python Turtle Graphics Design #2


Youtube







Source code:

import turtle as t
import colorsys as cs

t.setup(500,500)
t.bgcolor('black')
t.tracer(50)
for i in range(360):
    c = cs.hls_to_rgb(i/180,0.5,i/360)
    t.pencolor(c)
    t.fd(i/2)
    t.rt(35)
    t.circle(i/2,45)
    t.lt(95)
t.hideturtle()
t.done()


No comments:

Post a Comment

Python Turtle Graphics Drawing - Gigabyte

 Python Turtle Graphics Drawing - Gigabyte Youtube Source code: from turtle import * setup ( 600 , 600 ) color ( '#2D68AE' ) up (...