|
Author |
Topic: draw(); ??? (Read 2656 times) |
|
LigaMainz
|
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
|
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
|
|
|
|