summaryrefslogtreecommitdiffstats
path: root/examples/clock
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-02-14 02:23:41 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-02-14 02:23:41 +0100
commit76df374624e5d82dcb2670789a6c4ff228dda9e9 (patch)
treea038059216ab7115b9f2bb02314dace29d580296 /examples/clock
parentdf90c478e28892537efc0009d468a521d4d7fee5 (diff)
downloadiced-76df374624e5d82dcb2670789a6c4ff228dda9e9.tar.gz
iced-76df374624e5d82dcb2670789a6c4ff228dda9e9.tar.bz2
iced-76df374624e5d82dcb2670789a6c4ff228dda9e9.zip
Implement additional methods in `path::Builder`
Diffstat (limited to 'examples/clock')
-rw-r--r--examples/clock/src/main.rs9
1 files changed, 1 insertions, 8 deletions
diff --git a/examples/clock/src/main.rs b/examples/clock/src/main.rs
index 25a213cd..0a70709f 100644
--- a/examples/clock/src/main.rs
+++ b/examples/clock/src/main.rs
@@ -94,14 +94,7 @@ impl canvas::layer::Drawable for LocalTime {
let radius = frame.width().min(frame.height()) / 2.0;
let offset = Vector::new(center.x, center.y);
- let clock = canvas::Path::new(|path| {
- path.arc(canvas::path::Arc {
- center,
- radius,
- start_angle: 0.0,
- end_angle: 2.0 * std::f32::consts::PI,
- })
- });
+ let clock = canvas::Path::new(|path| path.circle(center, radius));
frame.fill(
&clock,