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 & HelpSyntax Questions › Clear the screen
Page Index Toggle Pages: 1
Clear the screen (Read 5754 times)
Clear the screen
May 7th, 2009, 12:59am
 
Is there anyway to clear the screen in Processing?  I have a title page with 3 buttons and when I click one I want to clear the screen and have it call a function that will display other stuffs.  Thanks alot.
Re: Clear the screen
Reply #1 - May 7th, 2009, 2:14am
 
background will clear the complete screen. So when you click a button calling background() and then a function that will draw your stuff and the buttons again. Another way to clear only a part of the screen is to draw a rect on this part.
Re: Clear the screen
Reply #2 - May 7th, 2009, 8:13pm
 
Okay awesome, thanks dood Cheesy
Page Index Toggle Pages: 1