prisonerjohn / processing-web

0 stars 0 forks source link

[CLOSED] Documentation for background() incorrectly shows alpha as function argument #106

Open prisonerjohn opened 10 years ago

prisonerjohn commented 10 years ago

Issue by REAS Friday Apr 26, 2013 at 01:09 GMT Originally opened as https://github.com/processing/processing-web/issues/106


See processing/processing#1741

prisonerjohn commented 10 years ago

Comment by benfry Friday Apr 26, 2013 at 19:06 GMT


It is a legit function argument—that was how people could do clear() before we added 'clear()'. It's also the only way to get a semi-transparent background with a color. i.e. background(255, 0, 0, 128) would fill an offscreen PGraphics with red at 50% alpha.

clear() just calls background(0, 0, 0, 0);

prisonerjohn commented 10 years ago

Comment by REAS Friday Apr 26, 2013 at 19:21 GMT


Thanks Ben. It's a documentation issue then. It was an issue in class on Thursday. Easy to fix with language.

prisonerjohn commented 10 years ago

Comment by REAS Thursday May 02, 2013 at 16:45 GMT


Finished for next release.