Fix examples, no longer Copy
This commit is contained in:
parent
39800b445f
commit
76c03de587
1 changed files with 2 additions and 2 deletions
|
|
@ -100,14 +100,14 @@ impl canvas::Program<Message> for Clock {
|
||||||
|
|
||||||
let wide_stroke = Stroke {
|
let wide_stroke = Stroke {
|
||||||
width: thin_stroke.width * 3.0,
|
width: thin_stroke.width * 3.0,
|
||||||
..thin_stroke
|
..thin_stroke.clone()
|
||||||
};
|
};
|
||||||
|
|
||||||
frame.translate(Vector::new(center.x, center.y));
|
frame.translate(Vector::new(center.x, center.y));
|
||||||
|
|
||||||
frame.with_save(|frame| {
|
frame.with_save(|frame| {
|
||||||
frame.rotate(hand_rotation(self.now.hour(), 12));
|
frame.rotate(hand_rotation(self.now.hour(), 12));
|
||||||
frame.stroke(&short_hand, wide_stroke);
|
frame.stroke(&short_hand, wide_stroke.clone());
|
||||||
});
|
});
|
||||||
|
|
||||||
frame.with_save(|frame| {
|
frame.with_save(|frame| {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue