Add Rgbf struct with conversions and arithmetic operations.
This commit is contained in:
1 parent
635e212daa
commit
27d5ef042a
4 files changed
+167
-7
No files matched your search
+3
-1
@@ -1,4 +1,4 @@
|
||||
use super::Rgb;
|
||||
use super::{ Rgb, Rgbf };
|
||||
use crate::smooth::Lerp;
|
||||
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Default)]
|
||||
@@ -13,6 +13,8 @@ impl LinearRgb
|
||||
{
|
||||
pub fn to_rgb(self) -> Rgb { todo!() }
|
||||
|
||||
pub fn to_rgbf(self) -> Rgbf { todo!() }
|
||||
|
||||
pub fn luminance(self) -> f32 { todo!() }
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user