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

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

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.