The source of the Paper.js website http://paperjs.org, translated to the static pages in https://github.com/paperjs/paperjs.github.io by running it through https://github.com/paperjs/woods in a Travis CI worker on each commit.
the example shows using the Math Operator, not the Math Operator Function. When one is converting from PaperScript to JavaScript this is important. I think line 3 of the example should read...
The doc is very good. Well above average for an open source project. I thought this might help some folks...
At...
http://paperjs.org/reference/point/#add-point
the example shows using the Math Operator, not the Math Operator Function. When one is converting from PaperScript to JavaScript this is important. I think line 3 of the example should read...
var result = point1.add( point2 );
instead of the current...
var result = point1 + point2;