Tuesday, November 8, 2022

Python Turtle Graphic Design #10

 Python Turtle Graphic Design #10

Youtube


Source code:

import turtle as t
import colorsys as cs

t.setup(640,640)
t.bgcolor('black')
t.tracer(100)
t.hideturtle()
h = 0
for i in range(360,0,-1):
    t.begin_fill()
    t.color(cs.hls_to_rgb(h,0.5,1))
    h+=1/1.6180
    t.circle(i/2)
    t.end_fill()
    t.lt(137.5)
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 (...