# 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
  theName String
  theDefaultValue boolean
  theX float
  theY float
  theWidth int
  theHeight int

Returns
  Toggle

Usage
  Web & Application

Related