Tuesday, October 25, 2022

Python Turtle Graphic Design #4

Python Turtle Graphic Design #4


 Youtube



Source code:

import turtle as t
import colorsys as cs
t.setup(640,640)
t.bgcolor('black')
t.tracer(100)
t.pensize(1)
t.hideturtle()
cols = ['#f00','#0f0','#f70','#00f']
for i in range(360):
    t.pencolor(cols[i % 4])
    t.fillcolor(cols[i % 4])
    t.begin_fill()
    t.circle(i/3,180)
    t.lt(90)
    t.fd(i/3)
    t.rt(179)
    t.end_fill()

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