js mode examples cleanup, automated import of included examples in getExampleCategoryFolders()

This commit is contained in:
fjenett
2011-06-14 07:46:26 +00:00
parent 4193b14c64
commit 952031a05c
3 changed files with 78 additions and 5 deletions
@@ -0,0 +1,23 @@
/**
* <form><input type="file" id="file-input"/></form>
*
* No Safari support.
*/
PImage img = null;
void setup ()
{
size(300, 200);
}
void draw ()
{
background(255);
if ( img != null ) image(img, 0,0, width,height);
}
void newImageAvailable ( Image i )
{
img = new PImage( i );
}