Which module you need for this project
In this whole project we will just use the turtle module of python
Why not other languages
If you are in industry of programming then you know that we also can draw and create animation in C but we choose python because it is easy to understand for begenners. So try to understand the code👨💻.
First part
import all method from the module turtle
from turtle import *
Second part
Then use the done() method to hold the screen
done()
Final part
from turtle import *
# set background color as black
bgcolor('black')
# make the position
penup()
goto(-50,90)
pendown()
# set the pen color
pencolor('#00adef')
# color your design
fillcolor('#00adef')
begin_fill()
left(9)
forward(200)
right(99)
forward(200)
right(99)
forward(200)
right(81)
forward(140)
end_fill()
# draw the cross lines
pencolor('black')
pensize(9)
penup()
right(81)
forward(90)
right(99)
pendown()
forward(170)
penup()
right(99)
forward(100)
right(81)
forward(70)
right(90)
pendown()
forward(220)
hideturtle()
done()
Comments
Post a Comment