A collection of articles by Jürg Lehni that—over time—shall touch upon the subjects of Programming, JavaScript, Geometry, Vector Graphics, as well as the programming libraries Paper.js and Straps.js.
Paper.js comes with its own flavor of JavaScript called PaperScript. PaperScript does two things: It executes your code in its own scope, where all Paper.js classes appear to be global (without polluting the actual global scope), but more importantly it adds operator overloading to the JavaScript language. Operator overloading in PaperScript works by…
Straps.js is micro-library that grew out of Bootstrap.js, a larger cross-platform library for client-sided scripting that I started working on in 2006. I have since abandoned this project in favour of jQuery, and Twitter has come along and unintentionally snatched the name, but the best parts of it now live on in Straps.js, which was heavily used to build…