repo_description: 🎨 Example-based texture synthesis written in Rust 🦀
repo_topics: cli hacktoberfest inpaint rust texture-synthesis
code: use texture_synthesis as ts;
  
  fn main() -> Result<(), ts::Error> {
      //create a new session
      let texsynth = ts::Session::builder()
          //load a single example image
          .add_example(&"imgs/1.jpg")
          .build()?;
  
      //generate an image
      let generated = texsynth.run(None);
  
      //save the image to the disk
      generated.save("out/01.jpg")
  }
  