Files
framehue/src/color/linear.rs
T

23 lines
444 B
Rust

use super::Rgb;
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 luminance(self) -> f32 { todo!() }
}
impl Lerp for LinearRgb
{
fn lerp(&self, _to: &Self, _t: f32) -> Self { todo!() }
}