pub struct Lines {
pub contrast: f32,
pub dark: f32,
}Expand description
Which pixels of the art are its dark lines: an opaque art pixel (before
enlarging) that is contrast darker than the brightest of its eight
neighbours, or at most dark bright. A see-through neighbour counts
as white, so a figure’s dark outline is a line; past the picture’s
edge there are no neighbours.
Brightnesses are 0 to 1, read before the curve.
Fields§
§contrast: f32How much darker than its brightest neighbour a line pixel is.
dark: f32The brightness at or below which a pixel is a line anyway.
Trait Implementations§
impl Copy for Lines
impl StructuralPartialEq for Lines
Auto Trait Implementations§
impl Freeze for Lines
impl RefUnwindSafe for Lines
impl Send for Lines
impl Sync for Lines
impl Unpin for Lines
impl UnsafeUnpin for Lines
impl UnwindSafe for Lines
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