Draw a boat using Python animation 🥸
#python #pythonprogramming #turtle #design #learnpython #viral #shortsvideo #subscribe
Source code:-
from turtle import *
title('Draw a Boat using Python')
bgcolor("blue")
#Draw boat
color("#966919","#5C4033")
penup()
goto(60,-150)
begin_fill()
pendown()
forward(200)
left(60)
forward(80)
setheading(180)
forward(280)
left(120)
forward(80)
end_fill()
backward(80)
setheading(0)
forward(140)
left(90)
#Draw the stick
pensize(9)
forward(125)
backward(5)
penup()
#draw left wing
pensize(2)
pendown()
left(130)
forward(4)
color("#FFEFD5")
begin_fill()
forward(165)
setheading(0)
forward(125)
end_fill()
penup()
left(90)
forward(108)
right(90)
forward(7)
#draw right wing
pensize(2)
pendown()
right(40)
color("#FFDAB9")
begin_fill()
forward(168)
setheading(180)
forward(125)
end_fill()
penup()
#Draw the three small circles
color("black","#FFE4B5")
goto(100,-100)
pendown()
begin_fill()
circle(11)
end_fill()
penup()
goto(160,-100)
pendown()
begin_fill()
circle(11)
end_fill()
penup()
goto(220,-100)
pendown()
begin_fill()
circle(11)
end_fill()
penup()
#draw the circle of the sun
color("#FF5F1F","#FF5F1F")
goto(-200,200)
pendown()
begin_fill()
circle(35)
end_fill()
penup()
#sunrays
pensize(5)
goto(-200,170)
for i in range(12):
pendown()
backward(80)
forward(80)
left(30)
penup()
#Draw the water
goto(-800,-150)
setheading(0)
color("#87CEEB","#87CEEB")
pendown()
begin_fill()
forward(1500)
right(90)
forward(180)
right(90)
forward(1400)
end_fill()
done()
On this page of the site you can watch the video online Boat design by using Python animation | source code below 🥸| with a duration of hours minute second in good quality, which was uploaded by the user Lucky sharma 17 August 2023, share the link with friends and acquaintances, this video has already been watched 35 times on youtube and it was liked by like viewers. Enjoy your viewing!