[−][src]Function geopattern::plaid
pub fn plaid(
distances: &[f32],
sizes: &[f32],
fill: &[(&str, f32)],
background_color: &str
) -> Document
plaid
use geopattern::plaid; let c = plaid( &(0..4).map(|v| 5.0 + v as f32 * 4.0).collect::<Vec<f32>>(), &(0..4).map(|v| 3.0 + v as f32 * 7.0).collect::<Vec<f32>>(), &(0..4) .map(|v| { ( if v & 1 == 0 { "#222" } else { "#ddd" }, 0.02 + (v as f32) / 4.0, ) }) .collect::<Vec<(&str, f32)>>(), "#987987", ); println!("{}", c);