Use Color::WHITE in gradient example

This commit is contained in:
Héctor Ramón Jiménez 2023-09-07 07:40:27 +02:00
parent 21259ee745
commit f83fb9b6cd
No known key found for this signature in database
GPG key ID: 140CC052C94F138E

View file

@ -26,12 +26,9 @@ impl Sandbox for Gradient {
type Message = Message;
fn new() -> Self {
let start = Color::new(1.0, 1.0, 1.0, 1.0);
let end = Color::new(0.0, 0.0, 1.0, 1.0);
Self {
start,
end,
start: Color::WHITE,
end: Color::new(0.0, 0.0, 1.0, 1.0),
angle: 0.0,
}
}