Simple Python Turtle Graphic and Code: Plumeria
Five petals of the tropical flower plumeria showing a natural wonder: one petal hides a portion of another.
Feel free to copy the basic Python Turtle code that is included below. Don't hesitate to ask questions about the code if you have any. Enjoy! Please comment, like, and subscribe :)
import turtle
t = turtle.Turtle() #Definitions and Initializations
screen = turtle.Screen()
screen.colormode(255)
t.pensize(4)
t.pencolor(255, 255, 0) #(255, 255, 0) for yellow outline of petals
flower_size = 155 #Changeable according to screen dimensions used
def petal(): #Definition of petal; procedure for drawing a petal
t.fillcolor((200, 0, 0)) #(200, 0, 0) for maroon body of petal
t.begin_fill()
t.circle(flower_size, 120)
t.left(60)
t.circle(flower_size, 120)
t.end_fill()
def flower_center(): #Definition and drawing procedure for flower center
for i in range(18):
t.forward(11)
t.goto(0, 0)
t.right(20)
t.left(30) #Python_Graphic start of drawing procedure, with pencolor initialized as yellow
for i in range(4): #For first 4 petals, each one of which covers partially the preceding one
petal() #Petal() function call
t.left(60 + 72) #Adjustment in turtle direction to draw next petal, where 72 = 360 / 5 petals
t.fillcolor((200, 0, 0)) #Start of drawing procedure for the fifth and last maroon petal
t.begin_fill()
t.circle(flower_size, 120) #First arc outline of fifth petal
t.left(60) #Adjustment in turtle direction to draw second arc outline of fifth petal
t.circle(flower_size, 73) #73, not 120, for exposed outline of fifth petal
t.pencolor(200, 0, 0) #Maroon, not yellow, for hidden outline of fifth petal
t.circle(flower_size, 47) #47, not 120, for hidden outline of fifth petal
t.end_fill()
t.pencolor(255, 255, 0) #Yellow for redraw of temporarily hidden outline of first petal
t.setheading(30)
t.circle(flower_size, 47) #Redraw of temporarily hidden yellow outline of first petal
t.penup() #Start of drawing procedure for flower center
t.goto(0, 0)
t.setheading(90)
t.pendown()
flower_center()
t.hideturtle() #End of drawing, turtle hide
screen.exitonclick()
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Simple Python Turtle Graphic and Code: Plumeria», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.