Skip to content

Commit 6d151ce

Browse files
Added a preview for the ground color
ez
1 parent f26b651 commit 6d151ce

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/main.rs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1750,6 +1750,25 @@ async fn main() {
17501750
_ => {}
17511751
}
17521752

1753+
match (grnd_red.parse::<u8>(), grnd_green.parse::<u8>(), grnd_blue.parse::<u8>()) {
1754+
(Ok(grnd_red), Ok(grnd_green), Ok(grnd_blue)) => {
1755+
draw_rectangle(
1756+
screen_width() - 450.0,
1757+
80.0,
1758+
50.0,
1759+
50.0,
1760+
Color::from_rgba(
1761+
grnd_red,
1762+
grnd_green,
1763+
grnd_blue,
1764+
255
1765+
)
1766+
);
1767+
}
1768+
1769+
_ => {}
1770+
}
1771+
17531772
bg_red_textbox.draw(bg_red.clone(), &font);
17541773
bg_green_textbox.draw(bg_green.clone(), &font);
17551774
bg_blue_textbox.draw(bg_blue.clone(), &font);

0 commit comments

Comments
 (0)