name lol
This commit is contained in:
@@ -67,11 +67,11 @@ impl<T: ColorNum + F32Conversion> Color<T> {
|
||||
self.map_rgb(|x| T::from(x.to() + amt))
|
||||
}
|
||||
|
||||
pub fn darken(self, amt: f32) -> Self {
|
||||
pub fn darker(self, amt: f32) -> Self {
|
||||
self.mul_rgb(1.0 - amt)
|
||||
}
|
||||
|
||||
pub fn brighten(self, amt: f32) -> Self {
|
||||
pub fn brighter(self, amt: f32) -> Self {
|
||||
self.map_rgb(|x| {
|
||||
let x = x.to();
|
||||
T::from(x + (1.0 - x) * amt)
|
||||
|
||||
Reference in New Issue
Block a user