~irimi1/nannou-experiments

ref: c1b355e11077692c51d9c8c14a5300dcf138f08f nannou-experiments/fiddling/unu/src/main.rs -rw-r--r-- 383 bytes
c1b355e1Manuel Groß unu: Add a blue circle 1 year, 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* https://guide.nannou.cc/tutorials/basics/draw-a-sketch.html */

use nannou::prelude::*;

fn main() {
    nannou::sketch(view).run();
}

fn view(app: &App, frame: Frame){
    // get canvas to draw on
    let draw = app.draw();

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

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