
The LyraMaker String Art Generator turns a photo into a string art pattern. It prints a frame with numbered pegs and works out the exact order in which to wind one long thread from peg to peg. Every straight line adds a little darkness, and after a few hundred lines a face appears.
The pattern comes from a greedy algorithm. Starting at peg 0, it tries every peg it can reach and picks the line that runs through the most darkness the picture still needs. That line is then subtracted from the picture, and the search starts again from the new peg. The preview shows each thread at its real width, so what you see is what you will wind.
Upload a photo, choose a round or square frame and a thread, and the generator computes the thread path, shows how it will look and gives you a 3D printable frame. Everything runs in your browser; the photo never leaves your computer.
The picture inside the frame is turned into a grid of darkness values. A thread line between two pegs covers a thin strip of that grid. At every step the generator looks at all pegs it may go to next and scores each line by the average darkness that is still missing along it. It takes the best line, removes that much darkness along it, and continues from the peg it just reached.
Pegs right next to the current one are skipped, because short lines along the edge add almost nothing, and no line is used twice. With Auto stop on, the generator also compares the thread picture with the photo every 50 lines, as seen from a few steps away. When more lines only make it worse, it cuts the list back to the best point.
Detail comes from the number of pegs and the size of the frame. A 200 mm ring holds about 160 printed pegs with 2 mm shafts; a larger frame or thinner pegs allow more. The generator keeps at least 1 mm, and at least three thread widths, between the heads of two pegs so the thread can wrap without jamming. If you ask for more pegs than fit, it uses the most that do.
Thread thickness changes the picture too. Each line darkens the picture by its real width, so thick yarn reaches full darkness after far fewer lines than sewing thread. Set the thickness you will really use.
Printed pegs make a complete kit with nothing else to buy. Each peg ends in a slightly wider stepped head that keeps the thread from riding up; its steps stay under 25 degrees of overhang, so it prints without supports. For heavier thread or high tension choose Holes for nails: the frame becomes a guide that you place on a wooden board, then you push small nails or pins through the holes. The backing plate closes the middle of the frame, which gives a clean background and stiffens it.
String art is always an approximation: it is made of straight lines, so fine detail and soft gradients are lost. Close-up faces with strong features and a plain background work best; busy scenes do not. Frames larger than your print bed are not split into parts. The preview is a simulation; the look of the real piece depends on your thread, your tension and the background.
Want the photo in dots of light instead? Try the halftone portrait generator, or explore every LyraMaker generator.
It depends on the frame and the thread. On a 200 mm ring with fine sewing thread the best match is often a few hundred to about a thousand lines. Auto stop finds that point for your photo.
The generator adds up the length of every line plus a little for each wrap and shows it in metres, with ten percent extra. Buy a little more than that.
Tie the thread to peg 0, the peg at the top. The numbers run clockwise as you look at the pegs, and every tenth peg is numbered on the frame.
The pegs must leave room for the thread between them: at least 1 mm and at least three thread widths. If more pegs would not fit, it uses the most that do.
Yes. Choose holes for nails. The frame then guides small nails or pins into a board behind it.