draw() during a paused sketch
in
Programming Questions
•
1 year ago
hi,
i have a sketch for which pausing is user-controlled. i have figured out the pausing, however when pause = true, the image disappears. is there a way to pause my sketch an keep the current frame visible?
here's is the essence of the code:
boolean pause = false;
setup()
{
blah blah
}
draw()
{
if(!pause)
{
code
}
}
void checkPause()
{
if(condition)
{
pause = true;
}
else
{
pause = false;
}
}
thanks,
destro
i have a sketch for which pausing is user-controlled. i have figured out the pausing, however when pause = true, the image disappears. is there a way to pause my sketch an keep the current frame visible?
here's is the essence of the code:
boolean pause = false;
setup()
{
blah blah
}
draw()
{
if(!pause)
{
code
}
}
void checkPause()
{
if(condition)
{
pause = true;
}
else
{
pause = false;
}
}
thanks,
destro
1