diff options
author | 2020-02-14 02:23:41 +0100 | |
---|---|---|
committer | 2020-02-14 02:23:41 +0100 | |
commit | 76df374624e5d82dcb2670789a6c4ff228dda9e9 (patch) | |
tree | a038059216ab7115b9f2bb02314dace29d580296 /examples/clock | |
parent | df90c478e28892537efc0009d468a521d4d7fee5 (diff) | |
download | iced-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.rs | 9 |
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, |