lib8: Rgb8Blend is no longer used
This commit is contained in:
@ -8,17 +8,6 @@ use rgb::Rgb;
|
||||
|
||||
use crate::lib8::interpolate::scale8;
|
||||
|
||||
pub trait Rgb8Blend {
|
||||
fn saturating_add<T: Into<Self>>(self, b: T) -> Self where Self: Sized;
|
||||
}
|
||||
|
||||
impl Rgb8Blend for Rgb<u8> {
|
||||
fn saturating_add<T: Into<Self>>(self, b: T) -> Self where Self: Sized {
|
||||
let rgb = b.into();
|
||||
Rgb::new(self.r.saturating_add(rgb.r), self.g.saturating_add(rgb.g), self.b.saturating_add(rgb.b))
|
||||
}
|
||||
}
|
||||
|
||||
pub trait IntoRgb8 {
|
||||
fn into_rgb8(self) -> Rgb<u8>;
|
||||
}
|
||||
|
Reference in New Issue
Block a user