Kent sez, "Enter your Twitter handle and watch as your tiny online avatar turns into large-scale generative art. Results can look like batik, pastel, or tie-dye, depending on the original."
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.
Doubtless you’ve laughed at the ideological war between the Judean People’s Front and the People’s Front of Judea. I laughed along with you: having grown up in politics, I know firsthand about the enmities that fester between groups that should be allies — groups whose differences can only be parsed after months of study, but who are seemingly more at odds with one another than their obvious political opponents on the “other side” of the debate.
China is engaged in a bizarre dystopian experiment to use social network ratings to punish political dissidence, “antisocial behavior” and noncomformity, using data pulled from many sources, including purchases on China’s major ecommerce networks like Alibaba; but you don’t have to be the Chinese government to spy on people with an extraordinary degree of creepy […]
Looking to upgrade your weekend? Here are three randomly awesome products on my mind this week.#3 FRESHeBUDS Pro Magnetic Bluetooth EarbudsAs more and more phones and gadgets switch to Bluetooth-only compatibility, you’ll need to get Bluetooth headphones like the rest of us. I’ve been super impressed with these affordable magnetic headphones. Pull the magnetic earbuds apart to auto-connect […]
Traditional folding wallets are designed for paper bills—but these days, carrying cash is rarely a necessity. More often than not, I don’t carry cash at all. This Bogui Clik Wallet is the best answer I’ve found for avoiding the hassle of those tight-fitting credit card pockets.This attractive, minimalist wallet features a protective lip, so my cards don’t […]
Using my iPhone while it’s charging is always a hassle. With tucked-away outlets and the meager length of included lightning cables, comfortable scrolling while plugged in is annoying. These 10-Ft MFi-Certified Lightning Cables are super convenient and probably the best iPhone accessory purchase I’ve made.At over three times the length of normal cables, these reach anywhere you […]