From b89631adce311f354c0025fff2d628a018efd093 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Mon, 16 Mar 2020 15:16:37 +0100 Subject: [PATCH] library: core: add LinearColor type --- src/core/color.rs | 6 ++++++ src/core/mod.rs | 2 ++ 2 files changed, 8 insertions(+) create mode 100644 src/core/color.rs diff --git a/src/core/color.rs b/src/core/color.rs new file mode 100644 index 0000000..2ded4e6 --- /dev/null +++ b/src/core/color.rs @@ -0,0 +1,6 @@ +#[derive(Debug)] +pub struct LinearColor { + pub r: f64, + pub g: f64, + pub b: f64, +} diff --git a/src/core/mod.rs b/src/core/mod.rs index e69de29..fd80bfc 100644 --- a/src/core/mod.rs +++ b/src/core/mod.rs @@ -0,0 +1,2 @@ +pub mod color; +pub use color::*;