![Skulpt](logo.png)
Integrating Processing-js and Skulpt!
Recursive Circles
This illustrates how processing and skulpt work together. You must define a draw function that does the drawing, and then you must call the run function to start things off. You may optionally define a setup call that does one time initialization of size and color etc.
Try These
There are three functions defined in this example, each returns a draw function.
- ellipseFun -- Watch the pulsing ball follow your mouse
- colorFun -- a rainbow of color
- distanceFun -- Watch the circles changes as you move your mouse
Click the run button and then move your mouse over the picture. To try one of the other examples change the second to the last line to make draw refer to a different function.