Python turtle graphics design with Colorsys Module

preview_player
Показать описание
Python GUI Module

This drawing done by using 2 Modules , turtle and colorsys.
colorsys library only for colour.

when we use colorsys library with turtle library build design will be more attractive.
Turtle is the pre-installed Library in Python,it is very easy to use and understand.

Turtle shortcuts

1) lt - left
2) rt - right
3) fd - forward
4) bk -backward
5) bgcolor - background colour

source code:

from turtle import *
import colorsys

speed(0)
h=0.1
bgcolor('black')

for i in range(170):
color(c)
h+=0.2
for j in range(2):
fd(i)
lt(71)
rt(120)
rt(240)
lt(51)
done()
Рекомендации по теме
welcome to shbcf.ru