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.
IndexProcessing DevelopmentLibraries,  Tool Development › pre and draw functions aren't working
Page Index Toggle Pages: 1
pre and draw functions aren't working (Read 1155 times)
pre and draw functions aren't working
May 14th, 2010, 11:28am
 
Hello,

maybe a silly question, but I'm quite new to the library development.
The pre() and draw() functions aren't invoked in my library. Is there a specific setting I have to do to get this working?

Thanks,
Christoph
Re: pre and draw functions aren't working
Reply #1 - May 14th, 2010, 11:47am
 
if they arent public... they have to be made so. so write them as public pre() {...} and public draw() {...}
Re: pre and draw functions aren't working
Reply #2 - May 14th, 2010, 1:42pm
 
they look like this:
public void draw(){
Page Index Toggle Pages: 1