diff options
author | 2023-09-07 07:40:27 +0200 | |
---|---|---|
committer | 2023-09-07 07:48:44 +0200 | |
commit | f83fb9b6cd221ecfc02d468df128dbb8b3751c3f (patch) | |
tree | 0956cd32b70bc4d6d047155037e77e7e9d06dc8c /examples/gradient | |
parent | 21259ee745c17d0f257c7a6c356d8a491460f9d6 (diff) | |
download | iced-f83fb9b6cd221ecfc02d468df128dbb8b3751c3f.tar.gz iced-f83fb9b6cd221ecfc02d468df128dbb8b3751c3f.tar.bz2 iced-f83fb9b6cd221ecfc02d468df128dbb8b3751c3f.zip |
Use `Color::WHITE` in `gradient` example
Diffstat (limited to 'examples/gradient')
-rw-r--r-- | examples/gradient/src/main.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/examples/gradient/src/main.rs b/examples/gradient/src/main.rs index ad9bfe11..dd50ebc9 100644 --- a/examples/gradient/src/main.rs +++ b/examples/gradient/src/main.rs @@ -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, } } |