pub struct Lighting {
pub vignette_cx: f64,
pub vignette_cy: f64,
pub vignette_rx: f64,
pub vignette_ry: f64,
pub glow: Option<Glow>,
}Expand description
Vignette and glow, quantised into BANDS background bands.
Band coordinate c is continuous in [0, 8): the vignette contributes up to
4 (bands 0-3, brighter toward the centre) and the glow pulls c toward 8
(bands 4-7, warmer toward the light). Ink in bands 4-7 is tinted toward the
accent, so glow and glyph tint come from one lookup.
Fields§
§vignette_cx: f64§vignette_cy: f64§vignette_rx: f64§vignette_ry: f64§glow: Option<Glow>Implementations§
Trait Implementations§
impl Copy for Lighting
impl StructuralPartialEq for Lighting
Auto Trait Implementations§
impl Forget for Lighting
impl Freeze for Lighting
impl Move for Lighting
impl RefUnwindSafe for Lighting
impl Send for Lighting
impl Sync for Lighting
impl Unpin for Lighting
impl UnsafeUnpin for Lighting
impl UnwindSafe for Lighting
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