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.
IndexSuggestions & BugsWebsite,  Documentation,  Book Bugs › nitpicking the documentation for millis()
Page Index Toggle Pages: 1
nitpicking the documentation for millis() (Read 1731 times)
nitpicking the documentation for millis()
Apr 16th, 2010, 11:00am
 
Probably a nitpick here, but the doc for millis() says that it returns an int, however the example uses float:

Code:

void draw() {
float m = millis();
fill(m % 255);
rect(25, 25, 50, 50);
}
Re: nitpicking the documentation for millis()
Reply #1 - Apr 16th, 2010, 2:30pm
 
Good catch. It's fixed in the file, will update online with the next version.
Page Index Toggle Pages: 1