// Demo code and the images generated by it (c) by SEGFAULT // // This code and all images generated by it is licensed under a // Creative Commons Attribution-ShareAlike 4.0 International License. // // You should have received a copy of the license along with this // work. If not, see . extern crate png; extern crate rustic_zen; use std::env; use std::fs::File; use std::io::BufWriter; use std::path::Path; use std::sync::Arc; use std::time; // To use encoder.set() use png::HasParameters; use rustic_zen::material::hqz_legacy_default; use rustic_zen::prelude::*; fn main() { let args: Vec = env::args().collect(); let threads = usize::from_str_radix(args.get(1).unwrap_or(&"1".to_owned()), 10) .expect("Usage