A string art generation library.
# Main Structs ## [`Pather`](crate::pather::Pather) The `Pather` struct is responsible for computing the path between pegs and generates a [`Blueprint`](crate::blueprint::Blueprint). The pathing algorithm is configured with the [`PatherConfig`](crate::pather::PatherConfig). ## [`PatherConfig`](crate::pather::PatherConfig) The `PatherConfig` struct contains configuration parameters for computing the string path. ## [`Blueprint`](crate::blueprint::Blueprint) The `Blueprint` struct represents computed string path between the pegs. It contains the peg order and provides method to render it to file. ## [`Yarn`](crate::peg::Yarn) The `Yarn` struct is used to control how to render the image, and it is also used to influence the pathing algorithm. ## [`Peg`](crate::peg::Peg) The `Peg` struct represents a peg in the yarn pattern. # Helpful functions `strandify` provides a few function which could come in handy. ## Opening images To help with handling alpha channels use [`open_img_transparency_to_white`](crate::utils::open_img_transparency_to_white). ## Peg shapes `strandify` provides a few helpful function to help position [`Pegs`](crate::peg::Peg) in various shapes: - [`circle`](crate::peg::shape::circle) - [`rectangle`](crate::peg::shape::rectangle) - [`square`](crate::peg::shape::square) - [`line`](