# controlP5 / ControlP5 / addSlider( )

name
  addSlider ( )

description
  add a slider to controlP5. by default it will be added to the default tab of the main window.

Syntax

      addSlider(theName, theMin, theMax, theDefaultValue, theX, theY, theW, theH);
      addSlider(theName, theMin, theMax, theX, theY, theWidth, theHeight);

parameters
  theName String
  theMin float
  theMax float
  theDefaultValue float
  theX int
  theY int
  theW int
  theH int
  theWidth int
  theHeight int

Returns
  Slider

Usage
  Web & Application

Related