Monday, November 14, 2022

Python Turtle Graphic Design #11

 Python Turtle Graphic Design #11

Youtube


Source code:

import turtle as t
import colorsys as cs

t.setup(640, 640)
t.tracer(50)
t.pensize(0)
t.bgcolor('black')
t.hideturtle()

for i in range(1440,0,-1):
    t.color(cs.hsv_to_rgb(i/720, 1, 1))
    t.begin_fill()
    t.rt(60)
    for j in range(3):
        t.fd(i/5)
        t.lt(120)
    t.lt(60)
    t.end_fill()
    t.lt(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 (...