pub struct BackdropStyle {
pub top: Rgba8,
pub bottom: Rgba8,
pub glow_color: Rgba8,
pub glow_strength: f32,
}Expand description
Colour shown only where no represented biology contributes a fragment.
Fields§
§top: Rgba8Upper fallback colour in display sRGB.
bottom: Rgba8Lower fallback colour in display sRGB.
glow_color: Rgba8Optional central compositing glow in display sRGB.
glow_strength: f32Glow contribution in [0, 1].
Implementations§
Source§impl BackdropStyle
impl BackdropStyle
Sourcepub const fn compositing() -> Self
pub const fn compositing() -> Self
Neutral publication/compositing fallback.
Sourcepub const fn transparent() -> Self
pub const fn transparent() -> Self
Transparent compositing fallback retaining neutral RGB fringe colours.
Opaque molecular fragments remain opaque and translucent scene matter contributes its accumulated coverage to the exported alpha channel.
Sourcepub const fn studio() -> Self
pub const fn studio() -> Self
A bright, near-neutral studio sweep with a soft central pool of light.
A specimen photographed in a lightbox reads as a real object: the eye has a lit ground to measure the subject against, and shadow and occlusion — which carry the shape — stay legible because they are darker than their surroundings rather than lost in an already-black frame. The faint cool cast is a lighting choice, not depicted matter.
Trait Implementations§
Source§impl Clone for BackdropStyle
impl Clone for BackdropStyle
impl Copy for BackdropStyle
Source§impl Debug for BackdropStyle
impl Debug for BackdropStyle
Source§impl Default for BackdropStyle
impl Default for BackdropStyle
Source§impl<'de> Deserialize<'de> for BackdropStyle
impl<'de> Deserialize<'de> for BackdropStyle
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for BackdropStyle
impl PartialEq for BackdropStyle
Source§impl Serialize for BackdropStyle
impl Serialize for BackdropStyle
impl StructuralPartialEq for BackdropStyle
Auto Trait Implementations§
impl Freeze for BackdropStyle
impl RefUnwindSafe for BackdropStyle
impl Send for BackdropStyle
impl Sync for BackdropStyle
impl Unpin for BackdropStyle
impl UnsafeUnpin for BackdropStyle
impl UnwindSafe for BackdropStyle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more