pub fn margin<T>(rect: [T; 4], m: T) -> [T; 4]where T: Float,
Shrinks a rectangle by a factor on all sides.