controlP5 / ControlP5 / addToggle( )
- name
- addToggle ( )
- description
- add a toggle to controlP5. by default it will be added to the default tab of the main window.
- Syntax
addToggle(theName, theDefaultValue, theX, theY, theWidth, theHeight); addToggle(theName, theX, theY, theWidth, theHeight);
- parameters
- theNameString
- theDefaultValueboolean
- theXfloat
- theYfloat
- theWidthint
- theHeightint
- Returns
- Toggle
- Usage
- Web & Application
- Related