Skip to content

Commit

Permalink
Fix compilation of color_pallete example
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys committed Jan 23, 2025
1 parent ce5a350 commit 9583f31
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions examples/color_pallete/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,12 @@ fn create_color_display(
})
.style(|s| s.width(50).font_size(18)),
empty().style(move |s| {
s.background(Color::rgb(
red.get() as f64,
green.get() as f64,
blue.get() as f64,
))
s.background(Color::new([
red.get(),
green.get(),
blue.get(),
1.0,
]))
.size(310, 75)
}),
)
Expand Down

0 comments on commit 9583f31

Please sign in to comment.