Function nannou::app[][src]

pub fn app<M: 'static>(model: ModelFn<M>) -> Builder<M, Event>
Expand description

Begin building the App.

The model argument is the function that the App will call to initialise your Model.

The Model can be thought of as the state that you would like to track throughout the lifetime of your nannou program from start to exit.

The given function is called before any event processing begins within the application.

The Model that is returned by the function is the same model that will be passed to the given event and view functions.