torsteins / uib_inf100_graphics

0 stars 0 forks source link

Screenshots does not respect width=0 paramter of canvas drawing methods #3

Open torsteins opened 1 week ago

torsteins commented 1 week ago

Steps to reproduce:

from uib_inf100_graphics.simple import canvas, display, config
config.set_file_to_save('fig.png')
canvas.create_rectangle(100, 100, 300, 300, fill='yellow', width=0)
display(canvas)

Expected: A yellow rectangle without any border is produced in fig.png

Actual: A yellow rectangle with a black border is produced in fig.png.

torsteins commented 1 week ago

Temporary workaround: use outline='' instead of width=0.