1
2
3
4
5
6
7
8
9
use crate::helper::Fraction;
use crate::Color;

pub trait ColorSpace {
    fn from_color(c: &Color) -> Self;
    fn into_color(&self) -> Color;

    fn mix(&self, other: &Self, fraction: Fraction) -> Self;
}