From the blog entry:
We're calling the Twitter API from Yahoo! Query Language, receiving an image URL for your avatar, converting it to a data:uri, and returning its base64-encoded value as JSON with a callback.
Then we create an image on the client, load it with the data YQL gave us, and stretch it to fit our (comparatively very large) canvas tag.
Since we've created the image locally, the usual canvas security restrictions don't apply and we're free to sample pixels. We do this, collecting color values and positions, and then we start drawing circles with random sizes and tiny random offsets from where each color sample was taken.
We let this run for about 20 seconds; this is long enough to develop most of what you're going to get, while leaving some of the interesting batik/pastel texture intact.
|Teh Geek Life: Indecision|
|DIY (Drone It Yourself)|
|Emmy Lincoln's Pop-Surrealistic Art|
|Frankentoys: Rachel Peters' Abominable Toys|
|3D Pac Man|
|CaptchaTweet: Write Tweets in Captcha Form|
|“It's not more expensive to build and it's hugely cheaper and more efficient to live in.”|
|“But what about when those technologies destroy the environment?”|
|Can a Ceiling Fan be Converted into a Turbine Generator?|
|What Nothing Really Means in Seinfeld|
|The (Very Scary) People of Public Transit|
|How to Avoid Jury Duty|
|Fake Name Generator|
|U.S.S. Enterprise Owner's Manual|
|If Sir David Attenborough Restored Vintage Toys|
|Naked Preacher Lady [NSFW]|
|“How easy it is for anyone who tracks our digital activities to gain insight into our personalities.”|