Skip to content

Show HN: A jiggly canvas sketch

lab.hailpixel.com
33 pointshailpixel6 comments
On HN

Comments

His homepage is awesome!

Just about to say the same thing. Very cute, I'm impressed.

how did you generate the background image? is it a photo sampled using H+V (discarding S)? are the triangles oriented randomly? looks nice (better than the wobble, imho, which i think has too high an amplitude - could be smaller and perhaps faster. i suppose a way to adjust parameters would be out of the question? ;o).

The background image is here: http://lab.hailpixel.com/static/1/img/box.jpg

It looks like it just uses the raw RGB values from the image, sampled in a 25x25 grid spanning the image. The orientation isn't random, but is chosen to avoid the sharper regions of the image, preferring to pick the points representative of smoother areas of colour.

This is exactly how I did it. The orientation on the triangles is chosen to minimize the "color distance" between connecting edges.

This would have been useful in college...

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.