Monday, October 31, 2022

Python Turtle Graphic Design #8

 Python Turtle Graphic Design #8

Youtube



Source code:

import turtle as t
import colorsys as cs
t.setup(640,640)
t.bgcolor('black')
t.tracer(100)
t.hideturtle()
N = 5
A = 360/N
t.lt(45)
for i in range(360,0,-1):
    h = (i % N)/N
    l = i/720
    s = 0.5+ i / 720
    t.color(cs.hls_to_rgb(h,l,s))
    t.begin_fill()
    t.circle(i/2,90)
    t.lt(90)
    t.circle(i/2,90)
    t.end_fill()
    t.lt(90+A-0.1)
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 (...