Full Code Listing Up to the "Get All Frames of Train" Page

Return back to the "Get All Frames of Train" Page

src/main.rs
mod d51;

use d51::*;

fn main() {
    draw_d51();
} // end of main()
src/d51.rs
pub fn draw_d51() {
    let d51: Vec<String> = get_d51();

    for each_line in d51 {
        println!("{}", each_line);
    }
} // end of draw_d51();

fn get_d51() -> Vec<String> {
    let d51: Vec<String> = vec![
        r"      ====        ________                ___________ ".to_string(),
        r"  _D _|  |_______/        \__I_I_____===__|_________| ".to_string(),
        r"   |(_)---  |   H\________/ |   |        =|___ ___|   ".to_string(),
        r"   /     |  |   H  |  |     |   |         ||_| |_||   ".to_string(),
        r"  |      |  |   H  |__--------------------| [___] |   ".to_string(),
        r"  | ________|___H__/__|_____/[][]~\_______|       |   ".to_string(),
        r"  |/ |   |-----------I_____I [][] []  D   |=======|__ ".to_string(),
        r"__/ =| o |=-~~\  /~~\  /~~\  /~~\ ____Y___________|__ ".to_string(),
        r" |/-=|___|=    ||    ||    ||    |_____/~\___/        ".to_string(),
        r"  \_/      \O=====O=====O=====O_/      \_/            ".to_string(),
    ];

    return d51;
} // end of get_d51()