How to draw a single point using Turtle Graphic

Viewed 8388

Is there any way to draw a single point using Turtle library instead of drawing a square? I would love to use less memory and be able to draw it faster. At the moment I am using this:

    def draw_p(alex, d):
    # trick to save local state PUSH
        cwd = alex.position() 
        alex.pendown()
        alex.forward(d)
        alex.left(90)
        alex.forward(d)
        alex.left(90)
        alex.forward(d)
        alex.left(90)
        alex.forward(d)
        alex.penup()
        alex.goto(cwd) # POP retrieve back to enter state
1 Answers
Related