[−][src]Function geopattern::overlapping_circles
pub fn overlapping_circles(
radius: f32,
(width, height): (usize, usize),
fill: &[(&str, f32)],
background_color: &str
) -> Document
overlapping circles
use geopattern::overlapping_circles; let c = overlapping_circles( 60.0, (2, 2), &(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);