Making portraits from thread
This algorithm takes as input an image you want to draw, and will output:
- a series of numbers corresponding to each nail where the thread should be placed (stored in results.txt), and
- [optional] simulated images of what the result will look like after x iterations
To run the script, call py main.py [args]
from the command line with the following arguments:
BOARD_WIDTH
: width of the board in centimetersPIXEL_WIDTH
: suggest keeping this constant and changing board width onlyLINE_TRANSPARENCY
: how many lines overlapped required to reach black (value between 0 to 1)NUM_NAILS
: how many nails to place on the boardMAX_ITERATIONS
: how many thread segments to place before algorithm terminates