About 83,700 results
Open links in new tab
  1. Turn towards specific direction in turtle graphics?

    Jul 30, 2024 · turtle.setheading(<degrees/radians>) is how you would use it. Without changing settings you will be in standard mode, so. turtle.setheading(0) would face the turtle right, …

  2. Point a Python Turtle towards certain coordinates

    May 12, 2018 · turtle.setheading(turtle.towards(x, y)) The turtle.towards() method is flexible with respect to it arguments. It can take separate x and y values, a combined (x, y) tuple, or …

  3. Set python turtle's heading in the direction of the line

    Apr 9, 2021 · I have made a line using the python turtle module. Here's the code: import turtle t = turtle.Turtle() def line(x1, y1, x2, y2): t.penup() t.setpos(x1, y1) t.pendown() t.setpos(x2, ...

  4. How to draw smily (arc) using python turtle - Stack Overflow

    May 1, 2016 · I want to draw a smily using python turtle. Circle extent will be 120. I am trying following import turtle turtle.circle(100) turtle.up() turtle.goto(0, 30) turtle.down() turtle.circle(40, …

  5. Changing turtle look direction in Python? - Stack Overflow

    Nov 28, 2017 · In python's turtle graphics, i am having a turtle run through the 'for' loop. It is important that at the end, the turtle is looking the same direction as when it started, how can …

  6. Setting the angle of a turtle in Python - Stack Overflow

    If the user types "west" in the parameters, the turtle should move west however the direction is. But the turtle's angle changes every time, I can't fix a value for my turtle to turn to go a certain …

  7. Python turtle set start position - Stack Overflow

    Jul 3, 2015 · Python turtle, change start position: import turtle a = turtle.Turtle() #instantiate a new turtle object called 'a' a.hideturtle() #make the turtle invisible a.penup() #don't draw when turtle …

  8. How to make a frowning face on Python Turtle? - Stack Overflow

    Apr 3, 2022 · You can use turtle.circle(radius , extent of arc) to make a semi-circle. For example: turtle.circle(50 , 180) This would make a semi circle of radius 50px. You can change the …

  9. Changing orientation on Turtle Graphics function - Stack Overflow

    Mar 24, 2023 · I've created a function to draw my panda face 6 times, facing different directions (North, North East, East etc.) The function has 3 parameters, x and y location and .setheading. …

  10. Get Python turtle to face in direction of line being plotted

    Mar 4, 2019 · I'm trying to get the turtle shape to follow the direction of a line. I have a simple parabola and I want the turtle shape to follow the direction of the line - when the graph goes …

Refresh