pub fn center_rem(size: Option<(f64, f64)>, resize_info: &ResizeInfo) -> Option<(f64, f64)> {
    size.map(|(width, height)| {
        let (full_width, full_height) = resize_info.full_size();

        ((full_width - width) / 2.0, (full_height - height) / 2.0)
    })
}
// will 0,0 mean centering in the middle of the screen
will 0,0 mean centering in the middle of the screen
will 0 0 mean centering in the middle of the screen
pub fn center_rem(size: Option<(f64, f64)>, resize_info: &ResizeInfo) -> Option<(f64, f64)> {
    size.map(|(width, height)| {
        let (full_width, full_height) = resize_info.full_size();
        ((full_width - width) / 2.0, (full_height - height) / 2.0)
    })
}
pub fn center_rem ( size : Option < ( f64 , f64 ) > , resize_info : & ResizeInfo ) -> Option < ( f64 , f64 ) > { size . map ( | ( width , height ) | { let ( full_width , full_height ) = resize_info . full_size ( ) ; ( ( full_width - width ) / 2.0 , ( full_height - height ) / 2.0 ) } ) }
will 0,0 mean centering in the middle of the screen
will 0 0 mean centering in the middle of the screen
size
Option<(f64, f64)>
resize_info
&ResizeInfo
size
Option<(f64, f64)>
resize_info
&ResizeInfo