donkirkby / live-py-plugin

Live coding in Python with PyCharm, Emacs, Sublime Text, or even a browser
https://donkirkby.github.io/live-py-plugin
MIT License
292 stars 56 forks source link

Turtle stamp breaks fill mode #304

Closed donkirkby closed 2 years ago

donkirkby commented 3 years ago

What I did

I drew a turtle stamp while in fill mode, with a fat pen.

import turtle as t

t.pensize(4)
t.fillcolor('ivory')
t.begin_fill()
size = 40
t.forward(size)
t.right(90)
t.stamp()
t.forward(size)
t.right(90)
t.forward(size)
t.end_fill()

t.mainloop()

What happened

When the turtle display came back to draw the turtle, it somehow wrote the fill colour over top of the outline. Comment out the stamp to see the difference.

What I wanted to happen

The only thing that should change is the turtle stamp itself. The square's outline and filling should be unchanged.

My environment

Describe the versions of everything you were using: