diff options
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) +} |