FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Programming Questions & Help
   Syntax
(Moderators: fry, REAS)
   draw(); ???
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: draw(); ???  (Read 2656 times)
LigaMainz

WWW
draw(); ???
« on: Aug 22nd, 2003, 9:07pm »

I saw the function draw() quite often in some of the code-pieces here.  
What is it for exactly and where is the difference between draw() and loop()? loop() and draw() don'T seem to work in the same sketch at the same time.
 
I'm not quite in to java. so maybe somebody can tell more. thx.
 
Vince
 
mKoser

WWW Email
Re: draw(); ???
« Reply #1 on: Aug 22nd, 2003, 9:18pm »

loop() is used if you want to draw something repeatedly over and over again. Usefull for animations and interactive stuff that changes over time.
 
draw() is used to create a static drawing, the method is called once.
 

mikkel crone koser | www.beyondthree.com | http://processing.beyondthree.com
Pages: 1 

« Previous topic | Next topic »