3 ms·
I had to do something similar once. I ended up using ImageMagick and ptrace get a nice "silhouette" of my image and use the generated data to draw a path using
by slig 15y ago
I had to do something similar once. I ended up using ImageMagick and ptrace get a nice "silhouette" of my image and use the generated data to draw a path using Raphael.
convert IMAGE.png -channel matte -separate +matte -flip ppm:- | potrace -k 0.95 -u 1 -s
- newtron 15y agoThat's interesting, I'll definitely take a look at Raphael. Did you just need the silhouette, or did Raphael let you do the click through thing too?
- slig 15y agoI was able to do the click through using the invisible path. The project was a kind of weird puzzle, so the click through was a must. I upped my prototype here: http://dl.dropbox.com/u/491131/puzzle/puzzle.html http://dl.dropbox.com/u/491131/puzzle/puzzle.html You can only drag the camel. Eventually I gave up because I wasn't able to drag the piece correctly if it was rotated.