Generative Art in HTML5 Canvas
color-wander.surge.sh
color-wander.surge.sh
And source code – https://github.com/mattdesl/color-wander
> The rendering algorithm is a re-hash of an old approach I detailed in a blog post, Generative Impressionism. Simplex noise is used to drive the particles, which are sometimes reset to a new random position. Each particle is rendered as a small line segment in the direction of its velocity. The scale of the noise is randomized so that some lines curl tightly, while others head straight.
PS: The distortion map is a really neat trick by the way, I'm going to play with that in some next project!
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?
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
Do you also use a feedback cycle based on velocity/acceleration/snap combined with randomization to get smooth-but-unpredictable paths?[1]
[0] https://www.youtube.com/watch?v=seEkX1sSk50
[1] https://www.youtube.com/watch?v=WLISmtaa5b0&t=6m53s (shitty video I recorded as extra material for a design class I taught)
When Flash died off, it took with it a wonderful environment for creating generative/interactive art. Even though we've had the (limited but approachable) canvas API these past few years, I feel like we're only now starting to see a resurgence in the generative web art space. Flash had a wonderful collection of composable filters that were a gentler form of fragment shaders — absolutely battery-melting, but gorgeous and powerful. A small step toward GL, much easier to get into than ShaderToy, more approachable than Max/MSP/Jitter even. I'm glad Flash died, but I'm sad that nothing has sprung up and improved on it since. Perhaps it's time for the second coming of HyperCard.
If anyone's curious, here's one of mine: http://ivanish.ca/toy/eigenvectors/ — Flash required, natch.
There is an alternative feature to do this on the server side in order to generate images or videos, but that is not what is showcased here.
FF 46.0.1, Win 10
The node part is only for generating higher resolution prints, offline (no server). :)