[−][src]Function simpleterm::text::place_art
pub fn place_art(
win_size: Size,
art: &[String],
font_size: FontSize
) -> (f64, f64)
Determines the top left corner of the given art in the given window, in order for the art to be centered.
let art: Vec<String> = GEO.split('\n').map(String::from).collect(); assert_eq!(place_art((800, 600).into(), &art, 10), (26.25, 40.0));