pub trait App {
// Required method
fn update(&mut self, sketch: &mut Sketch, ctx: &mut Context) -> Result<()>;
}
Expand description
This is the trait that your sketch app must explicitly implement. The App::update
function
is where the sketch draw code goes.