[−][src]Trait lyon_algorithms::hatching::DotBuilder
The output of Hatcher::dot_path
.
Implement this trait to create custom dot patterns.
Required methods
fn next_row_offset(&mut self, column: u32, row: u32) -> f32
Called for each row of dots.
fn next_column_offset(&mut self, column: u32, row: u32) -> f32
Distance between each dot in a given row.
fn add_dot(&mut self, dot: &Dot)
Called for each dot.
Provided methods
fn first_column_offset(&mut self, _row: u32) -> f32
Offset of the first dot after a left edge.
fn alignment(&mut self, _row: u32) -> Option<f32>
Whether and how much to align the dots for a given row.