MarginallyClever/weaving_algorithm

Black and White only

hyaym20 opened this issue · 7 comments

I have tried a BW image but the algorithm still using other colores (i.e. yellow, green, ...)
Is there a coming update to use only black thread?

line ~100: lines.add(addLine(color(255,255,255),"white"));
you'll see lines for white, black, yellow, etc. remove all except black and run again.

I tried that before, but the issue is it only subtract the other colores from the portrait, i.e. if the program will add 1000 lines of all colores, if I use black it will add only 200 lines for black.
See the image, it stops at that point. it should draw 5000 lines. but only 600 were used.

image

marlin
this is the pic that I used for the example above, but it's the same issue for any image.

for some reason, your images are not shown to me, but you are saying U used B & W thread, what I want is only black with white background.