Trait icebox::space::OpponentSpace [−][src]
pub trait OpponentSpace: ColorVecSpace { fn from_lxy(lxy: DVec3) -> Color<Self>; fn into_lxy(clr: Color<Self>) -> DVec3; }
Expand description
A color space consisting of one luma channel L and two opponent channels x and y. Color spaces deriving this trait will automatically support conversion to and from Lch (cylindrical) and Lch (conical) parameterizations.
Required methods
Create an appropriate color given luma and chroma channels