Function nannou::ui::prelude::widget::rounded_rectangle::points[][src]

pub fn points(rect: Rect, radius: f64, corner_resolution: usize) -> Points

Notable traits for Points

impl Iterator for Points type Item = [f64; 2];

Produce an iterator yielding the outer points of a rounded rectangle.

  • rect describes the location and dimensions
  • radius describes the radius of the corner circles.
  • corner_resolution the number of lines used to draw each corner.