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

Method right

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

Turn turtle right by angle units. Aliases: right | rt Argument: angle -- a number (integer or float) Turn turtle right by angle units. (Units are by default degrees, but can be set via the degrees() and radians() functions.) Angle orientati

(self, angle)

Source from the content-addressed store, hash-verified

1658 self._go(-distance)
1659
1660 def right(self, angle):
1661 """Turn turtle right by angle units.
1662
1663 Aliases: right | rt
1664
1665 Argument:
1666 angle -- a number (integer or float)
1667
1668 Turn turtle right by angle units. (Units are by default degrees,
1669 but can be set via the degrees() and radians() functions.)
1670 Angle orientation depends on mode. (See this.)
1671
1672 Example (for a Turtle instance named turtle):
1673 >>> turtle.heading()
1674 22.0
1675 >>> turtle.right(45)
1676 >>> turtle.heading()
1677 337.0
1678 """
1679 self._rotate(-angle)
1680
1681 def left(self, angle):
1682 """Turn turtle left by angle units.

Callers

nothing calls this directly

Calls 1

_rotateMethod · 0.95

Tested by

no test coverage detected