pub struct Tint(/* private fields */);Expand description
The glass film painted over the blurred backdrop. The wrapped color is linear-light; its alpha is the film opacity (how much of the tint shows over the blur).
Implementations§
Source§impl Tint
impl Tint
Sourcepub fn new(color: LinearRgba) -> Self
pub fn new(color: LinearRgba) -> Self
Wrap an already-linear color as the film.
Sourcepub fn from_srgb_unmultiplied(rgba: [u8; 4]) -> Self
pub fn from_srgb_unmultiplied(rgba: [u8; 4]) -> Self
Convenience: a film authored as straight-alpha sRGB bytes, decoded to linear.
Sourcepub fn color(self) -> LinearRgba
pub fn color(self) -> LinearRgba
The film color in linear light.
Trait Implementations§
impl Copy for Tint
impl StructuralPartialEq for Tint
Auto Trait Implementations§
impl Freeze for Tint
impl RefUnwindSafe for Tint
impl Send for Tint
impl Sync for Tint
impl Unpin for Tint
impl UnsafeUnpin for Tint
impl UnwindSafe for Tint
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more