Trait lyon_algorithms::hatching::DotBuilder
source · pub trait DotBuilder {
// Required methods
fn next_row_offset(&mut self, column: u32, row: u32) -> f32;
fn next_column_offset(&mut self, column: u32, row: u32) -> f32;
fn add_dot(&mut self, dot: &Dot);
// Provided methods
fn first_column_offset(&mut self, _row: u32) -> f32 { ... }
fn alignment(&mut self, _row: u32) -> Option<f32> { ... }
}
Expand description
The output of Hatcher::dot_path
.
Implement this trait to create custom dot patterns.
Required Methods§
sourcefn next_row_offset(&mut self, column: u32, row: u32) -> f32
fn next_row_offset(&mut self, column: u32, row: u32) -> f32
Called for each row of dots.
sourcefn next_column_offset(&mut self, column: u32, row: u32) -> f32
fn next_column_offset(&mut self, column: u32, row: u32) -> f32
Distance between each dot in a given row.
Provided Methods§
sourcefn first_column_offset(&mut self, _row: u32) -> f32
fn first_column_offset(&mut self, _row: u32) -> f32
Offset of the first dot after a left edge.