MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / settiltangle

Method settiltangle

tools/python-3.11.9-amd64/Lib/turtle.py:2844–2869  ·  view source on GitHub ↗

Rotate the turtleshape to point in the specified direction Argument: angle -- number Rotate the turtleshape to point in the direction specified by angle, regardless of its current tilt-angle. DO NOT change the turtle's heading (direction of movement).

(self, angle)

Source from the content-addressed store, hash-verified

2842 self.pen(resizemode="user", shearfactor=shear)
2843
2844 def settiltangle(self, angle):
2845 """Rotate the turtleshape to point in the specified direction
2846
2847 Argument: angle -- number
2848
2849 Rotate the turtleshape to point in the direction specified by angle,
2850 regardless of its current tilt-angle. DO NOT change the turtle's
2851 heading (direction of movement).
2852
2853 Deprecated since Python 3.1
2854
2855 Examples (for a Turtle instance named turtle):
2856 >>> turtle.shape("circle")
2857 >>> turtle.shapesize(5,2)
2858 >>> turtle.settiltangle(45)
2859 >>> turtle.stamp()
2860 >>> turtle.fd(50)
2861 >>> turtle.settiltangle(-45)
2862 >>> turtle.stamp()
2863 >>> turtle.fd(50)
2864 """
2865 warnings._deprecated("turtle.RawTurtle.settiltangle()",
2866 "{name!r} is deprecated since Python 3.1 and scheduled "
2867 "for removal in Python {remove}. Use tiltangle() instead.",
2868 remove=(3, 13))
2869 self.tiltangle(angle)
2870
2871 def tiltangle(self, angle=None):
2872 """Set or return the current tilt-angle.

Callers

nothing calls this directly

Calls 1

tiltangleMethod · 0.95

Tested by

no test coverage detected