filmov
tv
Python Turtle - Code a Boat Tutorial

Показать описание
Learn how to code a boat using Python's Turtle module.
~ CODE ~
from turtle import *
setup(800, 500)
speed(0)
# Sky
bgcolor("lightskyblue")
# Water
penup()
goto(-400, -150)
pendown()
color("mediumblue")
begin_fill()
for i in range(2):
forward(800)
right(90)
forward(100)
right(90)
end_fill()
# Boat
penup()
goto(-200, -80)
pendown()
color("saddlebrown")
begin_fill()
right(45)
forward(100)
left(45)
forward(250)
left(45)
forward(100)
end_fill()
# Mast
penup()
goto(0, -80)
pendown()
color("black")
begin_fill()
left(45)
for i in range(2):
forward(200)
left(90)
forward(10)
left(90)
end_fill()
# Right Sail
penup()
goto(0, 120)
pendown()
color("white")
begin_fill()
right(130)
forward(250)
right(140)
forward(190)
end_fill()
# Left Sail
penup()
forward(14)
pendown()
begin_fill()
forward(180)
right(139)
forward(240)
end_fill()
# Sun
penup()
goto(-300, 150)
pendown()
color("yellow")
begin_fill()
circle(40)
end_fill()
hideturtle()
~ CODE ~
from turtle import *
setup(800, 500)
speed(0)
# Sky
bgcolor("lightskyblue")
# Water
penup()
goto(-400, -150)
pendown()
color("mediumblue")
begin_fill()
for i in range(2):
forward(800)
right(90)
forward(100)
right(90)
end_fill()
# Boat
penup()
goto(-200, -80)
pendown()
color("saddlebrown")
begin_fill()
right(45)
forward(100)
left(45)
forward(250)
left(45)
forward(100)
end_fill()
# Mast
penup()
goto(0, -80)
pendown()
color("black")
begin_fill()
left(45)
for i in range(2):
forward(200)
left(90)
forward(10)
left(90)
end_fill()
# Right Sail
penup()
goto(0, 120)
pendown()
color("white")
begin_fill()
right(130)
forward(250)
right(140)
forward(190)
end_fill()
# Left Sail
penup()
forward(14)
pendown()
begin_fill()
forward(180)
right(139)
forward(240)
end_fill()
# Sun
penup()
goto(-300, 150)
pendown()
color("yellow")
begin_fill()
circle(40)
end_fill()
hideturtle()
Python Turtle - Code a House Tutorial
Python Turtle - Code a Mountain Range Tutorial
How to create graphics using Python turtle 🐍🐢 #coding
Amazing Flower Design using Python turtle 🐢 #python #coding #funny #viral #trending #design
Python Turtle Graphics Tutorial for Absolute Beginners - Drawing a Spirographic
Amazing Rotating Python Graphics Design using Turtle 🐢 #python #pythonshorts #coding #viral #design...
Python turtle code | Beautiful design using python pydroid 3 app | python tutorial
Amazing Python Graphics Design using Turtle 🐢 #python #pythonshorts #coding #viral #funny #project...
Amazing Zoom in Out Graphics By Turtle Python #coding #programmingtutorial #css3animation #html5
Python Turtle Graphics 7 | multi colors designs #CodingWithKarthik
Python Turtle - Code a Building Tutorial
Heart Shape Pattern Turtle Graphics Design using Python 🤔 #coding #python #turtle #programming #code...
Python turtle code | Beautiful design using python pydroid 3 | code 5
Python Turtle - Code a Boat Tutorial
Python Turtle - Code a Circle Tutorial
Superb graphics with python turtle | Python Turtle Graphics 20 | Awesome python turtle graphics
Amazing Geometry Design using Python turtle 🐢 #python #coding #funny #viral #trending #design
Python Turtle - Code a Cool Pattern Tutorial
Python Turtle - Code a Domino Tutorial
Print Your Name in python using turtle#short #youtubeshorts #python #turtle #short #programmer
Drawing a Flower With Python!! (Turtle Module) #shorts #PythonTurtle
Python Turtle 🐢 || Graphics Design || #python #turtle #design #coding #shorts #shortvideo
Complete Python Turtle Graphics Overview! (From Beginner to Advanced)
Python Turtle - Code a Star Tutorial
Комментарии