The demo is published on this page.
This is a 30 minutes time rewrite of this sketch.js demo in JavaFX, and recompiled to JavaScript with WebFX. Here is the JavaFX source code.
(in addition to those already explained in the previous demo)
In addition to the JavaFX scene graph mapping, WebFX also maps the JavaFX canvas API to the HTML canvas API, as illustrated by this demo.