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

Circle Animation with ImGui

 Circle Animation with ImGui for C++ Youtube: Source code: void CircFunc () {     static int nc = 360 ;     double radius = 300 ;     ...