You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: main.rs
    path of file: ./repos/rust-genetic-rockets/src
    
    the code of the file until where you have to start completion: //! Nannou main,
//!
//! Nannou is a framework for creative coding in Rust,
//! A nannou program mainly consists of the following c
    
fn view(app: &App, simulation: &Simulation, frame: Frame) {
    let screen = app.main_window().rect();
    let draw = app.draw();

    // use frame.nth() == 0 for single background draw
    draw.background().color(SIM_BACKGROUND);

    // Draw simulation
    simulation.draw(&draw);

    // Display FPS and generation
    let fps = format!("FPS: {}", app.fps().round());
    let generation = format!("GEN: {}", simulation.generation_count);
    draw.text(fps.as_str()).x_y(
        screen.bottom_right().x - 30.0,
        screen.bottom_right().y + 30.0,
    );
    draw.text(generation.as_str()).x_y(
        screen.bottom_right().x - 30.0,
        screen.bottom_right().y + 15.0,
    );

    draw.to_frame(app, &frame).unwrap();
}