diff options
author | Katharina Fey <kookie@spacekookie.de> | 2021-02-07 21:12:22 +0100 |
---|---|---|
committer | Katharina Fey <kookie@spacekookie.de> | 2021-02-07 21:12:22 +0100 |
commit | 0472f0fb50ffb945c83d662cd21b994562bee12d (patch) | |
tree | 58a5dfb1cc0d908c99ba50f5fdf8f7f0ebebd8b7 /games/rstnode/rst-client/src/color.rs | |
parent | 2d026c19ab9af91e316448bb74bfa27e0e295077 (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.rs | 7 |
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) +} |