From aad9cde279c57232bae370984b74fe0ff1a2dceb Mon Sep 17 00:00:00 2001 From: tpltnt <1172976+tpltnt@users.noreply.github.com> Date: Sat, 28 Mar 2020 12:34:49 +0100 Subject: [PATCH] clarified update function --- src/tutorials/basics/anatomy-of-a-nannou-app.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/tutorials/basics/anatomy-of-a-nannou-app.md b/src/tutorials/basics/anatomy-of-a-nannou-app.md index 8b06403..ec4a0d9 100644 --- a/src/tutorials/basics/anatomy-of-a-nannou-app.md +++ b/src/tutorials/basics/anatomy-of-a-nannou-app.md @@ -206,7 +206,7 @@ will just return an instance of our empty **Model**. > You can learn more about what the **App** is responsible for and capable of > [here](https://docs.rs/nannou/latest/nannou/app/struct.App.html). -## **event** - updating the Model on app events +## **update** and **event** - updating the Model (on app events) ```rust,no_run # #![allow(dead_code)] @@ -270,7 +270,8 @@ fn update(_app: &App, _model: &mut Model, _update: Update) { ``` Now, our new **update** function will only run each time a timed update -occurs. +occurs. The update function will only update the state of your model. +It can not be used for drawing. > Note: Nannou provides a whole suite of different events that may be registered > while building an app or window in this way. See the [all_functions.rs