diff options
author | 2020-04-02 01:11:38 +0200 | |
---|---|---|
committer | 2020-04-02 01:11:38 +0200 | |
commit | 2fa6edf7a8b2a6e06b42ff9879fe81cbd1a957c6 (patch) | |
tree | f08f1861753a9e32630042754be73573bf021a85 /examples | |
parent | 3bf938f65fcaa5c954015f6d016b859f1d25152b (diff) | |
parent | 92e148822fd4b8a5824d0e99974cf18971061270 (diff) | |
download | iced-2fa6edf7a8b2a6e06b42ff9879fe81cbd1a957c6.tar.gz iced-2fa6edf7a8b2a6e06b42ff9879fe81cbd1a957c6.tar.bz2 iced-2fa6edf7a8b2a6e06b42ff9879fe81cbd1a957c6.zip |
Merge pull request #251 from Plecra/clock-scaling
Rework scaling in clock example
Diffstat (limited to 'examples')
-rw-r--r-- | examples/clock/src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/clock/src/main.rs b/examples/clock/src/main.rs index d3a4261b..88f8322c 100644 --- a/examples/clock/src/main.rs +++ b/examples/clock/src/main.rs @@ -133,7 +133,7 @@ impl canvas::Drawable for LocalTime { frame.stroke( &hour_and_minute_hands, canvas::Stroke { - width: 6.0, + width: radius / 100.0 * 3.0, color: Color::WHITE, line_cap: canvas::LineCap::Round, ..canvas::Stroke::default() @@ -148,7 +148,7 @@ impl canvas::Drawable for LocalTime { frame.stroke( &second_hand, canvas::Stroke { - width: 3.0, + width: radius / 100.0, color: Color::WHITE, line_cap: canvas::LineCap::Round, ..canvas::Stroke::default() |