The idea is to take an image and come up with data to weave it using a single thread on a circular rim.
Basically this: A picture is worth a thousand words.
Output | Input |
---|---|
No. of pins: 254
No. of lines: 4000 (Approx. 1.75 km thread)
Credit: @larryisgood
This piece of software requires 3 inputs from the user:
P
L
All three inputs are crucial on how the final result is going to look. The program does the following:
P
equidistant points on it.p = 0
) as the starting point.p'
to draw a line from point p
by finding the highest intensity line.
p
to p'
.p
to p'
on the circular rim.p
to p'
are lightened* so that the same line is not drawn next time.p'
is set as the new starting point p
and then the steps from 5
is repeated until L
lines are drawn.* The amount by which a line should be lightened can also be configured.
Weaver.pde
using Processing.Run
or press CTRL+R
to execute the application.Note: Those of you who are downloading the repository as .zip file, you must rename the folder Weaver-master
to Weaver
before opening on Processing.
The setup()
function in Weaver.pde
chooses one of the example configurations. Check the example.pde
to modify the configuration of each example.
Kudos to i-make-robots for originally writting this algorithm.
I changed it a little bit to clean up the code, improve GUI and add some extra features.