summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/gradient/src/main.rs7
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,
}
}