Use Color::WHITE in gradient example
This commit is contained in:
parent
21259ee745
commit
f83fb9b6cd
1 changed files with 2 additions and 5 deletions
|
|
@ -26,12 +26,9 @@ impl Sandbox for Gradient {
|
||||||
type Message = Message;
|
type Message = Message;
|
||||||
|
|
||||||
fn new() -> Self {
|
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 {
|
Self {
|
||||||
start,
|
start: Color::WHITE,
|
||||||
end,
|
end: Color::new(0.0, 0.0, 1.0, 1.0),
|
||||||
angle: 0.0,
|
angle: 0.0,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue