controlP5 / ControlP5 / setAutoDraw( )

name
setAutoDraw ( )
description
by default controlP5 draws any controller on top of any drawing done in the draw() function (this doesnt apply to P3D where controlP5.draw() has to be called manually in the sketch's draw() function ). to turn off the auto drawing of controlP5, use controlP5.setAutoDraw(false). now you can call controlP5.draw() any time whenever controllers should be drawn into the sketch. 
Syntax
setAutoDraw(theFlag);
parameters
theFlagboolean 


Returns
None
Usage
Web & Application
Related