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();