Function stroke_rounded_rect

Source
pub fn stroke_rounded_rect(rect: Rect, radius: f32, width: f32, color: Color)
Expand description

Anti-aliased rounded-rectangle border of width, centered on the edge of rect. Strokes thinner than a device pixel fade instead of vanishing. Emits at most 1,224 vertices.

use ferravex_render::{Color, Rect, shapes};
shapes::stroke_rounded_rect(Rect::new(10., 10., 120., 40.), 8., 2., Color::from_hex(0xf7b553));