classification
Title: Turtle graphics fill behavior differs between versions
Type: behavior Stage:
Components: Tkinter Versions: Python 3.6, Python 3.5
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: John Simmons, serhiy.storchaka, terry.reedy
Priority: normal Keywords:

Created on 2017-02-14 19:22 by John Simmons, last changed 2017-02-18 01:32 by terry.reedy.

Messages (2)
msg287794 - (view) Author: John Simmons (John Simmons) Date: 2017-02-14 19:22
When I run the demo program on the library 24.1 documentation page to draw the star, it colors the entire star yellow, not just the parts that are show yellow on the page.  This appears to be a behavior change.  This is running on a Windows 7 or 10 machine with Python 3.2, 3.5, or 3.6.

I have not tried this program at home, but when I run a similar program that draws and then fills 10 overlapping circles, my Linux Mint 17.3 computer at home, running IDLE in Python 3.4, fills the "interior" points inside and odd number of circles but does not fill the "exterior" points inside an even number of circles.  This appears to be the behavior shown on documentation page 24.1.  I would like to know what is intended to be the correct behavior and why the implementations differ.
msg288050 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2017-02-18 01:32
I believe that there is a known difference between tk on Windows and linux with respect to filling of even and odd areas.  If I understand correctly, you saw one behavior on Windows and the other on Linux.  If so, this is not a bug in tkinter.
History
Date User Action Args
2017-02-18 01:32:45terry.reedysetnosy: + terry.reedy, serhiy.storchaka
messages: + msg288050
2017-02-14 19:22:08John Simmonscreate