README.md in coffee-processing-0.0.2 vs README.md in coffee-processing-0.0.3
- old
+ new
@@ -65,18 +65,19 @@
Caveats
-------
-Instance variables of Processing object, such as `width`, `frameCount` and `__mousePressed` (among others)
+Non-constant, instance variables of Processing object,
+such as `width`, `frameCount` and `__mousePressed` (among others)
should be accessed through their corresponding shortcut functions as follows.
```coffee
-# P3D, __mousePressed, frameCount, width and height are functions, not values.
+# __mousePressed, frameCount, width and height are functions, not values.
setup = ->
- size 100, 100, P3D()
+ size 100, 100, P3D
draw = ->
if __mousePressed()
point frameCount() % width(), frameCount() % height()
```
@@ -87,20 +88,22 @@
```coffee
# Alias for processing instance
p5 = processing
setup = ->
- size 100, 100, p5.P3D
+ size 100, 100, P3D
draw = ->
if p5.__mousePressed
point p5.frameCount % p5.width, p5.frameCount % p5.height
```
Examples
--------
Check out [examples](https://github.com/junegunn/coffee-processing/tree/master/examples) directory.
+
+Also check out [a Sinatra demo app](https://github.com/junegunn/coffee-processing-live).
Contributing
------------
1. Fork it