[x] are you running newest version (version from docs) ?
[x] can you reproduce the bug with a fresh environment ? (]activate --temp; add Makie)
[x] What platform + GPU are you on? Not applicable
The issue here is that roundedrectvertices does not close its line, i.e., verts[end] != verts[begin]. Without this, although poly works because of the fill rule, lines does not work and the output is in general not correct.
The ideal fix is that roundedrectvertices closes the line string by adding an additional point after the end (towards the yellow color in the plot) that connects to the beginning.
MWE:
using CairoMakie
bounding_rectangle = Rect2f(0, 0, 15, 10)
frame = Makie.roundedrectvertices(bounding_rectangle, 2, 50)
lines(frame; color = 1:length(frame))
]activate --temp; add Makie
)The issue here is that
roundedrectvertices
does not close its line, i.e.,verts[end] != verts[begin]
. Without this, althoughpoly
works because of the fill rule,lines
does not work and the output is in general not correct.The ideal fix is that
roundedrectvertices
closes the line string by adding an additional point after the end (towards the yellow color in the plot) that connects to the beginning.MWE: