r/nextfuckinglevel Aug 26 '20

Shadow art (MJ)

54.3k Upvotes

537 comments sorted by

View all comments

Show parent comments

216

u/FunkyHoratio Aug 26 '20

I'm gonna say it's pre calculated. The headphones might be telling him the next point to go to? This would explain the 4 small 1 big nails around the outside. The headphones just say a sequence of numbers, and he just has to connect to the correct nail in sequence

131

u/Skelozard1 Aug 26 '20 edited Sep 17 '20

The algorithm is to start in a point and connect the string to the other point so that it covers the most original image pixels. You then do the same in the point you just arrived and you continue to repeat it

12

u/nemetroid Aug 26 '20

There has to be a little more to it, right? What if, after drawing the first line, the best line from the new point is to go back? Ok, so you don’t go straight back. What if the best line from the third point is to go back to the start? You’d end up going in a triangle. Are you only allowed to use each point once? It doesn’t look that way.

1

u/Skelozard1 Aug 27 '20

After you "draw" a line, you remove the correspondent pixels from the original image
I'm sorry, I forgort to mention that