Fix Path::circle artifact

This commit is contained in:
DKolter 2025-06-03 14:56:57 +02:00
parent 7afbb89ebf
commit 5a4dfe1809

View file

@ -61,7 +61,10 @@ impl Path {
/// Creates a new [`Path`] representing a circle given its center
/// coordinate and its radius.
pub fn circle(center: Point, radius: f32) -> Self {
Self::new(|p| p.circle(center, radius))
Self::new(|p| {
p.circle(center, radius);
p.close();
})
}
/// Returns the internal [`lyon_path::Path`].