use super::{ Rgb, Rgbf }; use crate::smooth::Lerp; #[derive(Debug, Clone, Copy, PartialEq, Default)] #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] pub struct LinearRgb { pub r: f32, pub g: f32, pub b: f32, } impl LinearRgb { pub fn to_rgb(self) -> Rgb { todo!() } pub fn to_rgbf(self) -> Rgbf { todo!() } pub fn luminance(self) -> f32 { todo!() } } impl Lerp for LinearRgb { fn lerp(&self, _to: &Self, _t: f32) -> Self { todo!() } }