Python Turtle - Code the Aboriginal Australian Flag Tutorial

preview_player
Показать описание
Learn how to quickly draw an Aboriginal Australian flag using Python's Turtle module. This is simply 2 rectangles and a circle put together.

~ CODE ~

from turtle import *

speed(0)
setup(800, 500)
bgcolor("black")

# Red Rectangle
penup()
goto(-400, -250)
pendown()

color("red")
begin_fill()
for i in range (2):
forward(800)
left(90)
forward(250)
left(90)
end_fill()

# Yellow Circle
penup()
goto(0, -125)
pendown()

color("yellow")
begin_fill()
circle(120)
end_fill()

hideturtle()
exitonclick()
Рекомендации по теме
Комментарии
Автор

Hi, I have an ambition technology, thank you for producing this helpful tutorial to represent this valued flag.

vihaannambi
welcome to shbcf.ru