~irimi1/nannou-experiments

8c7ca4f2ef18ed3a7c660793af2800f0ab51cfbd — Manuel Groß 1 year, 1 month ago c1b355e
unu: Make some basic shit with black bars on white
1 files changed, 9 insertions(+), 2 deletions(-)

M fiddling/unu/src/main.rs
M fiddling/unu/src/main.rs => fiddling/unu/src/main.rs +9 -2
@@ 10,8 10,15 @@ fn view(app: &App, frame: Frame){
    // get canvas to draw on
    let draw = app.draw();

    draw.background().color(PURPLE);
    draw.ellipse().color(STEELBLUE);
    draw.background().color(WHITE);

    for i in 0..20 {
        draw.rect()
            .x_y((-i as f32 * 100.0) + (1920.0 / 2.0), 0.0)
            .w_h(2.0 * (20.0 - i as f32), 500.0)
            .z_degrees(30.0 - (7.0 *i as f32))
            .color(BLACK);
    }

    // put everything on the frame
    draw.to_frame(app, &frame).unwrap();