[−][src]Function geopattern::un_deus_trois
pub fn un_deus_trois(
step_size: f32,
(width, height): (usize, usize),
stroke: &[(&str, f32, f32)],
rotation: &[f32],
background_color: &str
) -> Document
Un Deus Trois
use geopattern::un_deus_trois; let c = un_deus_trois( 60.0, (2, 2), &(0..12) .map(|v| { ( if v & 1 == 0 { "#222" } else { "#ddd" }, 2.0, 0.02 + (v as f32) / 4.0, ) }) .collect::<Vec<(&str, f32, f32)>>(), &(0..12) .map(|v| 30.0 * v as f32) .collect::<Vec<f32>>(), "#987987", ); println!("{}", c);