aboutsummaryrefslogtreecommitdiff
path: root/games/rstnode/rst-client/src/color.rs
diff options
context:
space:
mode:
authorKatharina Fey <kookie@spacekookie.de>2021-02-07 21:12:22 +0100
committerKatharina Fey <kookie@spacekookie.de>2021-02-07 21:12:22 +0100
commit0472f0fb50ffb945c83d662cd21b994562bee12d (patch)
tree58a5dfb1cc0d908c99ba50f5fdf8f7f0ebebd8b7 /games/rstnode/rst-client/src/color.rs
parent2d026c19ab9af91e316448bb74bfa27e0e295077 (diff)
rstnode: some client cleanups and better colour handling
Diffstat (limited to 'games/rstnode/rst-client/src/color.rs')
-rw-r--r--games/rstnode/rst-client/src/color.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/games/rstnode/rst-client/src/color.rs b/games/rstnode/rst-client/src/color.rs
new file mode 100644
index 000000000000..4fbd7519dcd0
--- /dev/null
+++ b/games/rstnode/rst-client/src/color.rs
@@ -0,0 +1,7 @@
+use ggez::graphics::Color as EzColor;
+use rst_core::data::Color;
+
+
+pub fn to(Color(r, g, b): Color) -> EzColor {
+ EzColor::from_rgb(r, g, b)
+}