Skip to main content

Beautiful square shape design

 What's up everyone, welcome again. Today we have a new design in python turtle module.

Watch on YouTube:





⚠️⚠️If you are unable to copy the code, then copy whole page.

Source Code:
#SO HELLO EVERYONE
#TODAY WE HAVE A NEW THING
#WE HAD MAINLY USED FORWARD, BACKWARD, LEFT, RIGHT COMMAND OF TURTLE MODULE
#SO PLEASE BE WITH ME TILL THE END OF THE VIDEO
#SO LETS START""""
#please take screenshots
import turtle
window = turtle.Screen()
window.bgcolor("blue")
v = turtle.Turtle()
v.speed(10)

pc = v.pencolor
fc = v.fillcolor
ps= v.pensize
f = v.forward
b = v.backward
l = v.left
r = v.right
#square
v.fillcolor("black")
v.begin_fill()
ps(6)
pc("red")
b(150)
f(300)
l(90)
f(300)
l(90)
f(300)
l(90)
f(300)
v.end_fill()
#digonals
v.fillcolor("blue")
v.begin_fill()
ps(6)
pc("red")
l(135)
f(420)
b(210)
l(90)
f(210)
b(420)
f(210)
#corner
l(135)
f(60)
b(120)
f(60)
l(90)
f(60)
b(120)
#join
l(120)
f(165)
r(150)
f(165)
l(60)
f(165)
r(150)
f(165)
l(60)
f(165)
r(150)
f(165)
l(60)
f(165)
r(150)
f(165)
r(60)
f(60)
v.end_fill()
b(60)
l(120)
f(176)
#
v.fillcolor("black")
v.begin_fill()
pc("red")
r(120)
f(300)
l(90)
f(300)
l(90)
f(300)
l(90)
f(300)
v.end_fill()
v.fillcolor("blue")
v.begin_fill()
ps(6)
pc("red")
l(135)
f(420)
b(210)
l(90)
f(210)
b(420)
f(210)
#corner
l(135)
f(60)
b(120)
f(60)
l(90)
f(60)
b(120)
#join
l(120)
f(165)
r(150)
f(165)
l(60)
f(165)
r(150)
f(165)
l(60)
f(165)
r(150)
f(165)
l(60)
f(165)
r(150)
f(165)
r(60)
f(60)
v.end_fill()
b(60)
r(121)
f(175)
#
fc("black")
r(59)
pc("red")
f(5)
pc("blue")
f(20)
l(90)
f(299)
l(90)
f(26)
r(90)
pc("red")
v.begin_fill()
f(300)
l(90)
f(300)
l(90)
f(300)
l(90)
f(300)
l(90)
f(300)
v.end_fill()
v.fillcolor("blue")
v.begin_fill()
ps(6)
pc("red")
l(135)
f(420)
b(210)
l(90)
f(210)
b(420)
f(210)
#corner
l(135)
f(60)
b(120)
f(60)
l(90)
f(60)
b(120)
#join
l(120)
f(165)
r(150)
f(165)
l(60)
f(165)
r(150)
f(165)
l(60)
f(165)
r(150)
f(165)
l(60)
f(165)
r(150)
f(165)
r(60)
f(60)
v.end_fill()
b(60)
r(121)
f(172)
#
l(31)
fc("black")
pc("red")
v.begin_fill()
f(300)
l(90)
f(300)
l(90)
f(300)
l(90)
f(300)
l(90)
f(300)
v.end_fill()
v.fillcolor("blue")
v.begin_fill()
ps(6)
pc("red")
l(135)
f(420)
b(210)
l(90)
f(210)
b(420)
f(210)
#corner
l(135)
f(60)
b(120)
f(60)
l(90)
f(60)
b(120)
#join
l(120)
f(165)
r(150)
f(165)
l(60)
f(165)
r(150)
f(165)
l(60)
f(165)
r(150)
f(165)
l(60)
f(165)
r(150)
f(165)
r(60)
f(60)
v.end_fill()
turtle.done()
#GUYS IF YOU LIKE THE VIDEO SO PLEASE 
#LIKE THE VIDEO AND SUBSCRIBE THE 
#CHANNEL
#IT WILL MOTIVATE ME TO MAKE MORE VIDEOS LIKE SAME
#AND IF FIND ANY ERROR SO PLEASE
#TELL ME THAT BY DOING COMMENT.
#BYE W'LL MEET SOON
Thank you all



Comments

Popular posts from this blog

Python design Fast Tutorial 1

 Source Code: from turtle import* import colorsys speed(0) fd(100) he = 0.7   bgcolor("black") for i in range(200):       col = colorsys.hsv_to_rgb(he,1,1)     he+=0.004     fillcolor(col)     def triangle(a,b,c):         lt(120)         fd(a-i)         lt(120)         fd(b-i)         lt(90)         fd(c-i)     begin_fill()     triangle(200,200,200)     left(90)     left(20)     left(90)     triangle(200,200,200)     right(120)     end_fill()     hideturtle() done()    

How to find coordinates of any image in python?

How to Find Coordinates of  Any Image in Python.   What's up everyone, today we'll know the way of finding coordinates in python. So without wasting of time, let's go ahead. ==>Soon, I'm going to make a black and white image of 'Stylish Star Allu Arjun'. So, don't forget to subscribe my YouTube channel 'Coder Of Paradise'. #Requirements for finding coordinates. ** Firstly, You have to install sketchpy module. **To install sketchpy module, you have to use keyword ' pip install sketchpy==0.0.22 '. If you uses only ' pip install sketchpy ' then it will show error. **You can't find coordinates in Android or pydroid3, because sketchpy module uses canvas or cv2 module and cv2 module comes in premium of pydroid3. ** If you purchases pydroid3 premium may be that will work. **You can't find coordinates of any .svg image. But you can make .svg image to .jpg image by taking screenshot of your .svg image  **Now, The codes are here whic...

Make brave browser logo in python

 Hello everyone, hope you all are fit and fine. ==>Soon, I'm going to make a black and white image of 'Stylish Star Allu Arjun'. So, don't forget to subscribe my YouTube channel 'Coder of Paradise'. ⚠️⚠️⚠️If you are unable to copy the code, then copy whole page. Watch Full Tutorial of " How to find coordinates and draw image with coordinates in python": https://youtu.be/kBMx8j6_mb4 Source Code: #I made brave browser's 'lion' in python using turtle. #if you like it, then hit subscribe button import turtle as tu class brave():     def __init__(self):         self.red = [(193, 154), (194, 153), (199, 152), (208, 152), (238, 152), (242, 147), (244, 141), (272, 113), (273, 110),(277, 108), (430, 108), (460, 137), (460, 142), (470, 151), (514, 152), (523, 156), (559, 192), (560, 203), (557, 205), (556, 210), (552, 213), (551, 223), (549, 225), (548, 228), (552, 229), (552, 239), (556, 241), (556, 251), (560, 254), (562, 259), (565, 271), (558,...