Draw the following hexagram with Python and Turtle.
Hint:
Think about where to start. The point at the bottom looks like a good starting point.
Related Projects:
Draw the following hexagram with Python and Turtle.
Hint:
Think about where to start. The point at the bottom looks like a good starting point.
Related Projects:
Trefoil, comes from Lantin, means three-leaved plant. It is a shape used in architecture and Christian symbolism. For more details about this shape checkout this Wikipedia article.
Hint: This shape is composed of three arcs with extent of 240 degrees.
Draw a simple dog bone shape with Python and Turtle. This shape contains 2 lines and 4 arcs. You can draw the shape in one stroke without lifting the pen up. You can also fill the bone with the a color of your choice.
You can post your solution in the comment section.
Draw a five pointed star as shown preferably with a loop.
Draw a circle that is perfectly inscribed inside an equilateral triangle as shown. You may want to use some math skills in solving this problem.
Draw the following overlapping circles. Please note that each circle passes through the center of the other two circles.
We observe that the centers of the three circles form an equilateral triangle and the length of the equilateral triangle is the radius of the circle. So, the first step is to figure out the coordinates of the vertices of the equilateral triangle (with some math), and then draw three circles given the these three coordinates as the centers. So, it will be helpful to create a function that draws circle based on the center and radius. The following is the source code:
import turtle
screen = turtle.Screen()
screen.title('Three Circles - PythonTurtle.Academy')
screen.setup(1000,1000)
turtle.hideturtle()
turtle.speed(0)
def draw_circle(x,y,radius):
turtle.up()
turtle.goto(x,y-radius)
turtle.seth(0)
turtle.down()
turtle.circle(radius,steps=360)
r = 150
draw_circle(0,r,r*3**0.5)
draw_circle(-r/2*3**0.5,-r/2,r*3**0.5)
draw_circle(r/2*3**0.5,-r/2,r*3**0.5)
Draw from a single point to ten points that fall into a single line. Also draw dots on the end points.
Source Code:
import turtle
turtle.setup(1000,1000)
turtle.title('One to Ten - PythonTurtle.Academy')
turtle.speed(0)
turtle.hideturtle()
turtle.color('green')
turtle.up()
turtle.goto(0,250)
turtle.dot('red')
for x in range(-450,460,100):
turtle.up()
turtle.goto(0,250)
turtle.down()
turtle.goto(x,-250)
turtle.dot('blue')
Draw a regular hexagon that have vertices connected to the center. Use for loop to draw this shape.
Source Code:
hideturtle()
for angle in range(0,360,60):
up()
goto(0,0)
seth(angle)
down()
fd(300)
up()
goto(300,0)
seth(120)
down()
for _ in range(6):
fd(300)
left(60)
Draw a hex star as shown with Python and Turtle. Practice using loop to draw this shape.
The following red cross with Python and Turtle. You need to fill it with a color.
Source Code:
import turtle
screen = turtle.Screen()
screen.title('Red Cross - PythonTurtle.Academy')
screen.setup(1000,1000)
turtle.speed(0)
turtle.hideturtle()
turtle.color('red')
turtle.up()
turtle.goto(-450,-150)
turtle.down()
turtle.begin_fill()
for _ in range(4):
turtle.fd(300)
turtle.right(90)
turtle.fd(300)
turtle.left(90)
turtle.fd(300)
turtle.left(90)
turtle.end_fill()