Tuesday, October 25, 2022

Python Turtle Graphic Design #3

Python Turtle Graphic Design #3


Youtube



 Source code:

import turtle as t
import colorsys as cs

t.setup(640,640)
t.tracer(100)
t.bgcolor('black')
t.pensize(2)

for i in range(360):
    t.pencolor(cs.hls_to_rgb(i/9,1-i/360,0))
    t.circle(i,60)
    t.rt(40)
    t.pencolor(cs.hls_to_rgb(i/9,0.5,1))
    t.fd(i/4)
    t.rt(180)
    t.fd(i)

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 (...