Merge pull request #2979 from DKolter/issue_2976

Fix Path::circle artifact
This commit is contained in:
Héctor 2025-11-27 04:38:15 +01:00 committed by GitHub
commit bbc02783b9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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`].