Yet Another Wave Function Collapse implementation
This is an unfinished pure rust implantation of the Wave Function Collapse Algorithm.
Example usage:
use Reader as ImageReader;
use RgbImage;
use overlapping;
let generated_size = 30;
// Read the example image
let img = open.unwrap.decode.unwrap.to_rgb8;
let img: = img.rows.map.collect;
// Create the wave function from example image.
let mut wave = overlapping;
// Collapse the wave function.
wave.colapse;
// Extract image data from solver and save with image crate.
let mut tiles: = wave.get_collapsed_data.unwrap.iter.flatten.flat_map.collect;
let generated = from_raw.unwrap;
generated.save.unwrap;