1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 17:19:50 +00:00

Fix ellipses with sizes larger than 11px sometimes producing gaps

Their thickness seemed incorrect too, this commit also fixed that
This commit is contained in:
Emmanouil Papadeas 2023-11-01 17:30:29 +02:00
parent af8ba560ac
commit 7404bf23de

View file

@ -12,7 +12,7 @@ func _get_shape_points(shape_size: Vector2i) -> Array[Vector2i]:
var size_offset := Vector2i.ONE * (_thickness - 1)
var new_size := shape_size + size_offset
var inner_ellipse_size := new_size - size_offset
var inner_ellipse_size := new_size - 2 * size_offset
# The inner ellipse is to small to create a gap in the middle of the ellipse,
# just return a filled ellipse