Skip to content

Commit f83fb9b

Browse files
committed
Use Color::WHITE in gradient example
1 parent 21259ee commit f83fb9b

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

examples/gradient/src/main.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,9 @@ impl Sandbox for Gradient {
2626
type Message = Message;
2727

2828
fn new() -> Self {
29-
let start = Color::new(1.0, 1.0, 1.0, 1.0);
30-
let end = Color::new(0.0, 0.0, 1.0, 1.0);
31-
3229
Self {
33-
start,
34-
end,
30+
start: Color::WHITE,
31+
end: Color::new(0.0, 0.0, 1.0, 1.0),
3532
angle: 0.0,
3633
}
3734
}

0 commit comments

Comments
 (0)