fn noise2( color_channel: usize, x: f64, y: f64, lattice_selector: &[usize], gradient: &[Vec<Vec<f64>>], stitch_info: Option<StitchInfo>, ) -> f64