Re:Generative Art in HTML5 Canvas
by spiralganglion on Saturday May 14, 2016 @10:16PM
(#11699061)
I echo the other voices saying canvas and pure JS (or, in my case, CoffeeScript or ClojureScript). The canvas API is extremely intuitive — aside from the boilerplate setup, perhaps — and you can make some really neat things with it very quickly.
The home page for my personal site has a starfield made entirely with canvas: http://ivanish.ca — best to view in a dark room so you can see all the pseudo-nebulae.
Source code (if it helps): https://github.com/ivanreese/ivanish/blob/master/source/scri...
You might also want to consider Elm, but I have very little first-hand experience with it: http://elm-lang.org
I personally really like to just use plain javascript and the canvas API. I found the tutorial on mdn very useful (https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/...), and I enjoy the simplicity of not using libraries and tools.
I've also used EaselJS, which is also pretty good (but doesn't offer me anything I really need), and PixiJS, which is supposed to be very fast, by using WebGL where possible.
Not super comparable but three.js makes WebGl pretty accessible http://threejs.org
He's already had enough of Scratch, and I don't want a Python graphics library, because it's time for him to add JavaScript to his toolbox (in addition to Python, not instead). He's very artistic (his Photoshop work is amazing), and we both want him to spend the upcoming summer using artistic projects as a vehicle for learning JavaScript programming.
I'll check out P5.js and Processing.js. Any other suggestions or ideas?