This is an uber-simple html5 eye dropper tool that creates a json array of rgba values. It’s the format I like to use for my demos and while I have a few colorpickers installed in my browsers there wasn’t one that let me pick a bunch of colors quickly from one image and get them in the format I needed. With some quick hacking I was able to put this together in about 50 lines of Javascript. Hopefully this leads to some more color full demos in the future.
Archives for May 2012
Visual studio 11 and javascript
Messing around with the canvas mask api
Random dynamics on a triangular grid
I’m dipping my feet into random and monte carlo methods and wanted to try it out with a triangular grid after finding a few beautiful images on pinterest. I’m just picking grid elements at random and then swaping the values with an adjacent tile.
Everything random moves things around, random plus not separating matching tiles creates small clusters, picking the direction based on the tile color creates big groups in those directions. Rules based on sums just move things around randomly.
I haven’t found any rules to create large scale clusters yet, or create repetitive structured patterns, but I’m still looking. I’ll try some more ising, or changing value instead of swapping rules and see what I can do with those. I would still think that there should be some kind of local clustering rule though.

