[−][src]Function geopattern::overlapping_rings
pub fn overlapping_rings(
radius: f32,
(width, height): (usize, usize),
stroke: &[(&str, f32)],
background_color: &str
) -> Document
overlapping rings
TODO: consider having an outer_radius
?
use geopattern::overlapping_rings; let c = overlapping_rings( 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);