MarginallyClever / weaving_algorithm

weaving thread between nails in a circle to produce an image.
GNU General Public License v2.0
163 stars 49 forks source link

Black and White only #8

Closed hyaym20 closed 4 years ago

hyaym20 commented 4 years ago

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?

i-make-robots commented 4 years ago

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.

hyaym20 commented 4 years ago

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

i-make-robots commented 4 years ago

Share the pic? Let me try with your source material, please.

On Tue, Oct 13, 2020 at 10:34 AM hyaym20 notifications@github.com wrote:

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: image] https://user-images.githubusercontent.com/45494464/95895457-5c033600-0d93-11eb-8c66-e938a05c480b.png

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/i-make-robots/weaving_algorithm/issues/8#issuecomment-707899343, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALFRBWL6QP4KZAJ6EWDO6DSKSFSXANCNFSM4SHU7FSQ .

--

Dan Royer

Owner

1 (604) 259 9564 <16042599564> dan@marginallyclever.com www.marginallyclever.com https://www.facebook.com/MarginallyClever/ https://www.instagram.com/imakerobots/ https://www.youtube.com/channel/UCfbRxqjuOgE2EzRKxcePArw https://twitter.com/MarginallyC https://github.com/MarginallyClever/

hyaym20 commented 4 years ago

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

i-make-robots commented 4 years ago

[image: b.PNG] On a white background it performs much better. By default all colors are averaged in setup() to set the background color. change dest.background(255,255,255); to get all white.

On Wed, Oct 14, 2020 at 11:10 AM hyaym20 notifications@github.com wrote:

[image: marlin] https://user-images.githubusercontent.com/45494464/96028090-858a9300-0e61-11eb-8270-5db73783e052.jpg this is the pic that I used for the example above, but it's the same issue for any image.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/i-make-robots/weaving_algorithm/issues/8#issuecomment-708572186, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALFRBXCLTEWUDL5PNXDUI3SKXSQLANCNFSM4SHU7FSQ .

--

Dan Royer

Owner

1 (604) 259 9564 <16042599564> dan@marginallyclever.com www.marginallyclever.com https://www.facebook.com/MarginallyClever/ https://www.instagram.com/imakerobots/ https://www.youtube.com/channel/UCfbRxqjuOgE2EzRKxcePArw https://twitter.com/MarginallyC https://github.com/MarginallyClever/

i-make-robots commented 4 years ago

Here again with white and black thread, 32 opacity instead of the usual 64. [image: a.PNG]

On Wed, Oct 14, 2020 at 12:07 PM Dan Royer dan@marginallyclever.com wrote:

[image: b.PNG] On a white background it performs much better. By default all colors are averaged in setup() to set the background color. change dest.background(255,255,255); to get all white.

On Wed, Oct 14, 2020 at 11:10 AM hyaym20 notifications@github.com wrote:

[image: marlin] https://user-images.githubusercontent.com/45494464/96028090-858a9300-0e61-11eb-8270-5db73783e052.jpg this is the pic that I used for the example above, but it's the same issue for any image.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/i-make-robots/weaving_algorithm/issues/8#issuecomment-708572186, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALFRBXCLTEWUDL5PNXDUI3SKXSQLANCNFSM4SHU7FSQ .

--

Dan Royer

Owner

1 (604) 259 9564 <16042599564> dan@marginallyclever.com www.marginallyclever.com https://www.facebook.com/MarginallyClever/ https://www.instagram.com/imakerobots/ https://www.youtube.com/channel/UCfbRxqjuOgE2EzRKxcePArw https://twitter.com/MarginallyC https://github.com/MarginallyClever/

--

Dan Royer

Owner

1 (604) 259 9564 <16042599564> dan@marginallyclever.com www.marginallyclever.com https://www.facebook.com/MarginallyClever/ https://www.instagram.com/imakerobots/ https://www.youtube.com/channel/UCfbRxqjuOgE2EzRKxcePArw https://twitter.com/MarginallyC https://github.com/MarginallyClever/

hyaym20 commented 4 years ago

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.