Skip to main content

buffer_lines

Function buffer_lines 

Source
pub fn buffer_lines(
    lines: &[Vec<(i32, i32)>],
    opts: &BufferOpts,
) -> Vec<Polygon>
Expand description

Stroke each polyline into a buffered polygon strip of width 2 * distance.abs(). Open paths (start ≠ end). Negative distance has no meaning here and is treated as its absolute value.