Create colour module

This commit is contained in:
Matthew Gordon 2020-09-02 23:21:17 -04:00
parent 6870186bca
commit 8b30ad581e
2 changed files with 3 additions and 1 deletions

View File

@ -4,7 +4,7 @@ use std::ops::{Add, Mul};
#[derive(Copy, Clone, Debug, Default)] #[derive(Copy, Clone, Debug, Default)]
pub struct ColourRgbF { pub struct ColourRgbF {
values: Vec3, pub values: Vec3,
} }
impl ColourRgbF { impl ColourRgbF {

2
src/colour/mod.rs Normal file
View File

@ -0,0 +1,2 @@
pub mod colour_rgb;
pub use colour_rgb::{ColourRgbF, ColourRgbU8, NamedColour};