Python Turtle - Code the Aboriginal Australian Flag Tutorial

Publié le: 23 février 2020
sur la chaîne: Geek Tutorials
2,581
22

Learn how to quickly draw an Aboriginal Australian flag using Python's Turtle module. This is simply 2 rectangles and a circle put together.

⭐ Kite is a free AI-powered coding assistant that will help you code faster and smarter. The Kite plugin integrates with all the top editors and IDEs to give you smart completions and documentation while you’re typing. I've been using Kite for 6 months and I love it! https://www.kite.com/get-kite/?utm_me...

~ 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()


Sur cette page du site, vous pouvez voir la vidéo en ligne Python Turtle - Code the Aboriginal Australian Flag Tutorial durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Geek Tutorials 23 février 2020, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 2,581 fois et il a aimé 22 téléspectateurs. Bon visionnage!