[−][src]Trait amethyst_rendy::palette::Shade
The Shade
trait allows a color to be lightened or darkened.
use palette::{LinSrgb, Shade}; let a = LinSrgb::new(0.4, 0.4, 0.4); let b = LinSrgb::new(0.6, 0.6, 0.6); assert_eq!(a.lighten(0.1), b.darken(0.1));
Associated Types
Loading content...Required methods
Loading content...Provided methods
Loading content...Implementors
impl<C> Shade for Alpha<C, <C as Shade>::Scalar> where
C: Shade,
[src]
C: Shade,
type Scalar = <C as Shade>::Scalar
fn lighten(
&self,
amount: <C as Shade>::Scalar
) -> Alpha<C, <C as Shade>::Scalar>
[src]
&self,
amount: <C as Shade>::Scalar
) -> Alpha<C, <C as Shade>::Scalar>
impl<S, T> Shade for Color<S, T> where
S: RgbSpace,
T: Float + Component,
[src]
S: RgbSpace,
T: Float + Component,
impl<S, T> Shade for Luma<S, T> where
S: LumaStandard<TransferFn = LinearFn>,
T: Component + Float,
[src]
S: LumaStandard<TransferFn = LinearFn>,
T: Component + Float,
impl<S, T> Shade for Rgb<S, T> where
S: RgbStandard<TransferFn = LinearFn>,
T: Component + Float,
[src]
S: RgbStandard<TransferFn = LinearFn>,
T: Component + Float,
impl<S, T> Shade for Hsl<S, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<S, T> Shade for Hsv<S, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<S, T> Shade for Hwb<S, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<Wp, T> Shade for Lab<Wp, T> where
T: Component + Float,
Wp: WhitePoint,
[src]
T: Component + Float,
Wp: WhitePoint,
impl<Wp, T> Shade for Lch<Wp, T> where
T: Component + Float,
Wp: WhitePoint,
[src]
T: Component + Float,
Wp: WhitePoint,
impl<Wp, T> Shade for Xyz<Wp, T> where
T: Component + Float,
Wp: WhitePoint,
[src]
T: Component + Float,
Wp: WhitePoint,
impl<Wp, T> Shade for Yxy<Wp, T> where
T: Component + Float,
Wp: WhitePoint,
[src]
T: Component + Float,
Wp: WhitePoint,