drawing a flower with python! (turtle module)

preview_player
Показать описание
We draw a flower using python ! (easy)
Рекомендации по теме
Комментарии
Автор

#instead you can use it also
from turtle import *

title("rainbow spiral")
speed(0)
bgcolor("black")
r, g, b=255, 0, 0

for i in range(500):
colormode(255)
if i<255//3:
g+=3
elif i<255*2//3:
r-=3
elif i<255:
b+=3
elif i<255*4//3:
g-=3
elif i<255*5//3:
r+=3
else:
b-=3
circle(425-i, 90)
lt(90)
circle(425-i, 90)
left(18)
pencolor(r, g, b)

localserver
Автор

from turtle import *
color("black", "pink")
title("art")
speed(-5)
bgcolor("black")
r, g, b=200, 0, 0
def fleur():
for i in range(300):
begin_fill()
circle(190-i, 90)
left(90)
circle(190-i, 90)
left(18)
end_fill()

fleur()
mainloop()

rayarezzan
Автор

Which editor for phython do you use to make this

piyushkumar
Автор

Which python compiler you use in this video..can you tell me about the compiler name....

tadow_ig
Автор

how can you draw like 6, 7, 8, ... petals

khanhoquoc
Автор

whats extension are u useing bro plzz help me

akhilakhil
Автор

Is there any way to avoid the curvy flower that show up at the end of the drawing?

nathanwilson
Автор

Why 190-i ?
And why 90 ?
And why 2 circle ?
🤦🏻‍♂️🤦🏻‍♂️🤦🏻‍♂️🤦🏻‍♂️

ahmedyaseen
Автор

NameError: name 'circle' is not defined . how to correct it='?

KamenKr
Автор

I wrote the code in the video studio code but it never worked

محمد-كمج
Автор

Run ho rha hai par animation nahi dikh raha hai

sureshsingh
Автор

Aap kon sa application use kar tai hai

fractionbolt
Автор

It's better if you provide you code too

albusdumbledore
Автор

bruh i dont have button run or debug, where does it cuz all my projects is have it. I tryed all. To add exitonclick, i search mistakes but it is have no mistake, all likee in video(
mh maybe i am so noob or my computer is

hllz