From 9866a4d542b5ea75766d2f179d28d8b534f582f1 Mon Sep 17 00:00:00 2001 From: mutterer Date: Sun, 29 Mar 2020 19:13:38 +0200 Subject: [PATCH] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 01a2da0..596d320 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ The range of available controllers includes Slider, Button, Toggle, Knob, Textfi * [Digital Object Identifiers ](#doi) -## Installation +## Installation To install the library from inside the Processing IDE, use the Library Manager from the menu under Sketch → Import Library → Add Library and search for ControlP5. @@ -93,7 +93,7 @@ _example 1, see code below_ _example 2, a range of default ControlP5 controllers_ -## How does ControlP5 work? +## How does ControlP5 work? ControlP5 provides a range of controllers, each controller comes with an example which is located inside the examples/controllers folder. This is a good place to get started with ControlP5. @@ -131,7 +131,7 @@ Alternatively, ControlP5 can be instantiated from other places as well for examp } ``` -### Adding Controllers +### Adding Controllers To add controllers to a ControlP5 object, use the add function followed by the name of the Controller, for example to add a Slider use cp5.addSlider("mySlider"). Here function addSlider takes one argument which is the unique name of the controller to be added. In case a controller with the same name is already registered with ControlP5, the old controller will be overridden - this is then indicated and printed as a warning message in the console. All default add functions are implemented with class ControlP5Base; have a look at its source code for further reference.