pub struct OutlineConfig {
pub color: [f32; 4],
pub threshold: f32,
pub thickness: f32,
}Expand description
Edge outline post configuration.
Fields§
§color: [f32; 4]Outline color in linear RGBA.
threshold: f32Luminance edge threshold.
thickness: f32Edge sampling distance in pixels.
Implementations§
Source§impl OutlineConfig
impl OutlineConfig
Sourcepub fn normalized(self) -> Self
pub fn normalized(self) -> Self
Returns a clamped configuration.
Trait Implementations§
Source§impl Clone for OutlineConfig
impl Clone for OutlineConfig
Source§fn clone(&self) -> OutlineConfig
fn clone(&self) -> OutlineConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OutlineConfig
Source§impl Debug for OutlineConfig
impl Debug for OutlineConfig
Source§impl Default for OutlineConfig
impl Default for OutlineConfig
Source§impl PartialEq for OutlineConfig
impl PartialEq for OutlineConfig
Source§fn eq(&self, other: &OutlineConfig) -> bool
fn eq(&self, other: &OutlineConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OutlineConfig
Auto Trait Implementations§
impl Freeze for OutlineConfig
impl RefUnwindSafe for OutlineConfig
impl Send for OutlineConfig
impl Sync for OutlineConfig
impl Unpin for OutlineConfig
impl UnsafeUnpin for OutlineConfig
impl UnwindSafe for OutlineConfig
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