[]Function piston_window::rectangle::centered

pub fn centered(rect: [f64; 4]) -> [f64; 4]

Use x, y, half-width, half-height