turtle.dot()

turtle.dot(size=None, *color)

Parameters:
  • size – an integer >= 1 (if given)
  • color – a colorstring or a numeric color tuple

Draw a circular dot with diameter size, using color. If size is not given, the maximum of pensize+4 and 2*pensize is used.

>>> turtle.home()
>>> turtle.dot()
>>> turtle.fd(50); turtle.dot(20, "blue"); turtle.fd(50)
>>> turtle.position()
(100.00,-0.00)
>>> turtle.heading()
0.0
doc_python
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.