Processing.js for Processing Devs: Difference between revisions

Jump to navigation Jump to search
Line 37: Line 37:
* http://hascanvas.com/
* http://hascanvas.com/


Let's make a simple sketch that is 200 by 200 in size, sets the background to gray, and draws a small white circle:
Let's make a simple sketch that is 200 by 200 in size, sets the background to gray, draws a small white circle, and prints a message to the debug console:


<pre>
<pre>
Line 47: Line 47:
   println('hello web!');
   println('hello web!');
}
}
<pre>
</pre>


I'll assume below that you saved this to a file called '''hello-web.pde'''.
I'll assume below that you saved this to a file called '''hello-web.pde'''.
Confirmed users
656

edits

Navigation menu