Open
Description
Version of Dear PyGui
Version: 0.6.294
Operating System: macOS 10.15.7 & Windows 10 (both with same issue)
My Issue/Question
The outlines using draw_polygon
do not appear to be drawing correctly. Also, if you draw the same polygon using draw_triangle
they do not match each other.
Expected behavior
I think the outlines should be uniform thickness. I would also think that the polygon output and triangle output would be the same. The triangle output corners look better than the polygon but still not uniform (cool stylistic option but I don't think that is the intention).
Screenshots/Video
Note that the poly triangle fill also gets cut off on the right part in addition to the outline issues.
Note, if you set the thickness=0
the two drawings still do not look the same. The polygon looks more ragged.
Standalone, minimal, complete and verifiable example
from dearpygui.core import *
from dearpygui.simple import *
w,h = 500, 500
with window("tri", width=w, height=h):
set_window_pos("tri", 0,0)
add_drawing("d1", width=w, height=h)
draw_triangle("d1", [100,150], [100, 400], [450, 200], color=[255, 255, 255, 255], fill=[255, 0,0,255], thickness=20)
with window("poly", width=w, height=h):
set_window_pos("poly", w, 0)
add_drawing("d2", width=w, height=h)
draw_polygon("d2", [[100,150], [100, 400], [450, 200], [100,150]], color=[255, 255, 255, 255], fill=[255, 0,0,255], thickness=20)
start_dearpygui()