Загрузка...

How to make a 🌸in Python Day 3 365 #Shorts #Python

day 3 of my 365 days python challenge🚀
after two days of building automation tools , I wanted to try something a bit more visual, today, I used thee turtle library of a bit of math to make this beautiful flower
project code:
[import turtle
import colorsys

#setup window
t = turtle.Turtle()
s = turtle.Screen()
s.bgcolor("black")
t.speed(0)

h = 0

for i in range(150):
c = colorsys.hsv_to_rgb(h,1,1)
t.pencolor(c)
h += 0.005

t.circle(190-i, 90)
t.left(90)
t.circle(190-i, 90)
t.left(18)

turtle.done()
]
let's connect:
if you have any cool ideas for day 4 , drop in the comment section ! I'm trying to decide between another automation or a small game.
SUBSCRIBE TO FOLLOW THE SET OF 365 DAYS ! 🐍✨
#python #codingchallenge #turtlegraphics #day3 #learntocode #small creator.

Видео How to make a 🌸in Python Day 3 365 #Shorts #Python канала NYVRO
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять