Drawing cool shapes with Python Turtle If turtle is not installed, type pip install PythonTurtle in the terminal

from turtle import * # initialize all function from turtle

import colorsys

 

speed(0)

h=0.1

bgcolor('black')

 

for i in range(170):

    c=colorsys.hsv_to_rgb(h,1,1)

    color(c)

    h+=0.2

    for j in range(2):

        fd(i)

        lt(71)

        rt(120)

    rt(240)

    lt(51)

done()


Yorumlar

Bu blogdaki popüler yayınlar

THE KULAKLIK

BİZ Mİ TOPU SEÇERİZ YOKSA TOP Mİ BİZİ SEÇER TOPUN İZİNDE 😂

Abu , Labne, Labubu 😅