Merge pull request #2979 from DKolter/issue_2976
Fix Path::circle artifact
This commit is contained in:
commit
bbc02783b9
1 changed files with 4 additions and 1 deletions
|
|
@ -61,7 +61,10 @@ impl Path {
|
||||||
/// Creates a new [`Path`] representing a circle given its center
|
/// Creates a new [`Path`] representing a circle given its center
|
||||||
/// coordinate and its radius.
|
/// coordinate and its radius.
|
||||||
pub fn circle(center: Point, radius: f32) -> Self {
|
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`].
|
/// Returns the internal [`lyon_path::Path`].
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue