We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpOther Libraries › controlP5 background problem
Page Index Toggle Pages: 1
controlP5 background problem (Read 539 times)
controlP5 background problem
Jul 9th, 2009, 11:18am
 
Something wrong happened when i use the function background in draw function and the background cover always my p5 sliders.

import controlP5.*;

ControlP5 cp5;
int value=0;
void setup ()
{
 size( 300, 300 );
  cp5 = new ControlP5( this );
 cp5.addSlider( "slider1", 0, 100, 50, 0, 0, width, 200 );


}

void draw ()
{
background(value);

}

void slider1 ( int value )
{
 // put code for slider 1 here
 println( "1 " + value );
}
Page Index Toggle Pages: 1