Skip to content

Commit

Permalink
Unfilled circle (#372)
Browse files Browse the repository at this point in the history
* Unfilled circle

* Unfilled circle
  • Loading branch information
15artis authored Mar 11, 2024
1 parent 40ab0df commit 3c5cacb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions vger/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,15 @@ impl Renderer for VgerRenderer {
width,
paint,
);
} else if let Some(circle) = shape.as_circle() {
self.vger.stroke_arc(
self.vger_point(circle.center),
(circle.radius * self.scale) as f32,
width,
0.0,
std::f32::consts::PI,
paint,
);
} else {
for segment in shape.path_segments(0.0) {
match segment {
Expand All @@ -342,6 +351,7 @@ impl Renderer for VgerRenderer {
paint,
);
}

floem_peniko::kurbo::PathSeg::Cubic(_) => todo!(),
}
}
Expand Down

0 comments on commit 3c5cacb

Please sign in to comment.