Function graphics::math::margin_rectangle

source ยท
pub fn margin_rectangle<T>(rect: Rectangle<T>, m: T) -> Rectangle<T>
where T: Float,
Expand description

Shrinks a rectangle by a factor on all sides.