{"id":8613,"date":"2022-01-06T20:38:11","date_gmt":"2022-01-06T19:38:11","guid":{"rendered":"https:\/\/www.pimpampum.net\/?p=8613"},"modified":"2022-01-08T12:33:32","modified_gmt":"2022-01-08T11:33:32","slug":"string-art-generator","status":"publish","type":"post","link":"https:\/\/www.pimpampum.net\/en\/string-art-generator\/","title":{"rendered":"String art generator"},"content":{"rendered":"\n<p>This project began with the idea to build a square grid of n x n nails. Then a thread could be weaved between the nails. The thread is a continuous one, without breaks, and you can change the color in a palette of 5 by clicking or touching the screen. <br><br>The initial idea was to weave yourself interactively, then I thought an algorithm could be responsible of that. In the final version you can weave yourself in addition to the generated pattern anyways.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/www.pimpampum.net\/wordpress\/wp-content\/uploads\/download-26.png\" alt=\"\" class=\"wp-image-8615\" srcset=\"https:\/\/www.pimpampum.net\/wordpress\/wp-content\/uploads\/download-26.png 1024w, https:\/\/www.pimpampum.net\/wordpress\/wp-content\/uploads\/download-26-768x768.png 768w, https:\/\/www.pimpampum.net\/wordpress\/wp-content\/uploads\/download-26-120x120.png 120w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>I had this idea because I remember when I was a child  playing with a piece of wood with some nails on it and a wool thread, it was probably school homework, but I was fascinated by the mathematical forms that can emerge from this, and I don\u2019t know why, but I think <strong>it\u2019s somewhat related to coding in a computer<\/strong>. There are loops, coordinates, and you can create your own \u201calgorithm\u201d to weave the forms.<\/p>\n\n\n\n<p>So I started with this basic idea, but then I realized that the complexity, diversity and beautiful images that can emerge from these can be improved if, instead of using a grid of nails, we use other <strong>layouts<\/strong> for the \u201cnails\u201d, for instance, spirals, circles, etc.<\/p>\n\n\n\n<p>Probably because I\u2019m used to work with pixels, <strong>the grid is the most familiar way to work<\/strong>, and so was the first layout in my mind, but I think the main benefit of string art is to <strong>break this paradigm<\/strong> and use other configurations.<\/p>\n\n\n\n<p>So in my algorithm there are \u201c<strong>layouts<\/strong>\u201d of nails, and then \u201c<strong>patterns<\/strong>\u201d of threads. A pattern follows the instructions to weave between the nails. Each nail has its virtual coordinates that, not necessarily, correspond to the real coordinates in the bitmap.<\/p>\n\n\n\n<p>Both the \u201cLayout\u201d and \u201cPattern\u201d are the main features in the generative image\/animation.<\/p>\n\n\n\n<p>A \u201cpattern\u201d are the instructions that the thread has to follow to weave the result, for instance could be like&#8230; start with the first nail, go the to last one, back to the second nail, then to the second-last nail, etc. The thread is always continuous without interruptions, only color changes.<\/p>\n\n\n\n<p>The same \u201cpattern\u201d applied to different layouts can display a completely different result. In a way is a distortion of the space that create totally diverse structures.<\/p>\n\n\n\n<p>In the following example you can see the same pattern (which I called &#8220;frames&#8221;, in 4 different layouts, &#8220;grid&#8221;,&#8221;square&#8221;,&#8221;circle&#8221; and &#8220;triangle&#8221;<\/p>\n\n\n\n<figure class=\"wp-block-gallery columns-3 is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\"><ul class=\"blocks-gallery-grid\"><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/www.pimpampum.net\/wordpress\/wp-content\/uploads\/download-30.png\" alt=\"\" data-id=\"8619\" data-full-url=\"https:\/\/www.pimpampum.net\/wordpress\/wp-content\/uploads\/download-30.png\" data-link=\"https:\/\/www.pimpampum.net\/en\/string-art-generator\/download-30\/\" class=\"wp-image-8619\" srcset=\"https:\/\/www.pimpampum.net\/wordpress\/wp-content\/uploads\/download-30.png 1024w, https:\/\/www.pimpampum.net\/wordpress\/wp-content\/uploads\/download-30-768x768.png 768w, https:\/\/www.pimpampum.net\/wordpress\/wp-content\/uploads\/download-30-120x120.png 120w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"blocks-gallery-item__caption\">&#8220;Frames&#8221; pattern in a &#8220;Triangle&#8221; layout<\/figcaption><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/www.pimpampum.net\/wordpress\/wp-content\/uploads\/download-29.png\" alt=\"\" data-id=\"8622\" data-full-url=\"https:\/\/www.pimpampum.net\/wordpress\/wp-content\/uploads\/download-29.png\" data-link=\"https:\/\/www.pimpampum.net\/en\/string-art-generator\/download-29\/\" class=\"wp-image-8622\" srcset=\"https:\/\/www.pimpampum.net\/wordpress\/wp-content\/uploads\/download-29.png 1024w, https:\/\/www.pimpampum.net\/wordpress\/wp-content\/uploads\/download-29-768x768.png 768w, https:\/\/www.pimpampum.net\/wordpress\/wp-content\/uploads\/download-29-120x120.png 120w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"blocks-gallery-item__caption\">&#8220;Frames&#8221; pattern in a &#8220;Circle&#8221; layout<\/figcaption><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/www.pimpampum.net\/wordpress\/wp-content\/uploads\/download-28.png\" alt=\"\" data-id=\"8625\" data-full-url=\"https:\/\/www.pimpampum.net\/wordpress\/wp-content\/uploads\/download-28.png\" data-link=\"https:\/\/www.pimpampum.net\/en\/string-art-generator\/download-28\/\" class=\"wp-image-8625\" srcset=\"https:\/\/www.pimpampum.net\/wordpress\/wp-content\/uploads\/download-28.png 1024w, https:\/\/www.pimpampum.net\/wordpress\/wp-content\/uploads\/download-28-768x768.png 768w, https:\/\/www.pimpampum.net\/wordpress\/wp-content\/uploads\/download-28-120x120.png 120w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"blocks-gallery-item__caption\">&#8220;Frames&#8221; pattern in a &#8220;Square&#8221; layout<\/figcaption><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/www.pimpampum.net\/wordpress\/wp-content\/uploads\/download-27.png\" alt=\"\" data-id=\"8628\" data-full-url=\"https:\/\/www.pimpampum.net\/wordpress\/wp-content\/uploads\/download-27.png\" data-link=\"https:\/\/www.pimpampum.net\/en\/string-art-generator\/download-27\/\" class=\"wp-image-8628\" srcset=\"https:\/\/www.pimpampum.net\/wordpress\/wp-content\/uploads\/download-27.png 1024w, https:\/\/www.pimpampum.net\/wordpress\/wp-content\/uploads\/download-27-768x768.png 768w, https:\/\/www.pimpampum.net\/wordpress\/wp-content\/uploads\/download-27-120x120.png 120w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"blocks-gallery-item__caption\">&#8220;Frames&#8221; pattern in a &#8220;Grid&#8221; layout<\/figcaption><\/figure><\/li><\/ul><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>So, as I realized this, in the last weeks I spent most time working on both the layouts and patterns, and trying to improve them to make beautiful images. At the end I made 21 patterns and 10 different layouts!<\/p>\n\n\n\n<p>This is the generative project for fx_hash I&#8217;ve spent the most time by far and it&#8217;s going to be dropped there as a huge collection.<\/p>\n\n\n\n<p>Trying to look for other digital artists who had worked with string art I found the amazing work of <a rel=\"noreferrer noopener\" href=\"https:\/\/www.instagram.com\/pvrellis\/\" data-type=\"URL\" data-id=\"https:\/\/www.instagram.com\/pvrellis\/\" target=\"_blank\">Petros Vrellis<\/a> with his \u201c<a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/alyyousuf7\/Weaver\" data-type=\"URL\" data-id=\"https:\/\/github.com\/alyyousuf7\/Weaver\" target=\"_blank\">Computational String art<\/a>\u201d code to recreate images using string art in a circle configuration (one of the possible layouts in my definition)<\/p>\n\n\n\n<p>You can find the source code on <a href=\"https:\/\/github.com\/alyyousuf7\/Weaver\" data-type=\"URL\" data-id=\"https:\/\/github.com\/alyyousuf7\/Weaver\">github<\/a> (2016)<\/p>\n\n\n\n<p>Did you know that String art in fact has its origins in the &#8216;curve stitch&#8217; activities invented by <a href=\"https:\/\/en.wikipedia.org\/wiki\/Mary_Everest_Boole\">Mary Everest Boole<\/a> more than 100 years ago to make mathematical ideas more accessible to children? Of course it was in the pre-computer era, but so computer-ish, isn&#8217;t it?<\/p>\n\n\n\n<p><a href=\"https:\/\/en.wikipedia.org\/wiki\/Mary_Everest_Boole\">https:\/\/en.wikipedia.org\/wiki\/Mary_Everest_Boole<\/a><\/p>\n\n\n\n<p>If you&#8217;re interested you can still get a mint on the <a href=\"https:\/\/www.fxhash.xyz\/marketplace\/generative\/6183\">fxhash marketplace <\/a><\/p>\n\n\n\n<p>To end this summary I&#8217;d like to show you some of the project variations in this video and some instructions about the controls.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<div class=\"video-wrapper\"><iframe loading=\"lazy\" title=\"String art generator\" width=\"1000\" height=\"563\" src=\"https:\/\/www.youtube.com\/embed\/Z5yXXaZR1Bk?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe><\/div>\n<\/div><figcaption>Some samples<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<div class=\"video-wrapper\"><iframe loading=\"lazy\" title=\"String art generator controls\" width=\"1000\" height=\"563\" src=\"https:\/\/www.youtube.com\/embed\/TPpD4_sNjx0?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe><\/div>\n<\/div><figcaption>Controls<\/figcaption><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This project began with the idea to build a square grid of n x n nails. Then a thread could be weaved between the nails. The thread is a continuous one, without breaks, and you can change the color in a palette of 5 by clicking or touching the screen. The initial idea was to [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":8628,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[362],"tags":[750,749,751,752],"class_list":["post-8613","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-lab","tag-art","tag-fxhash","tag-generative","tag-nft-2"],"_links":{"self":[{"href":"https:\/\/www.pimpampum.net\/en\/wp-json\/wp\/v2\/posts\/8613","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pimpampum.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.pimpampum.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.pimpampum.net\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pimpampum.net\/en\/wp-json\/wp\/v2\/comments?post=8613"}],"version-history":[{"count":7,"href":"https:\/\/www.pimpampum.net\/en\/wp-json\/wp\/v2\/posts\/8613\/revisions"}],"predecessor-version":[{"id":8641,"href":"https:\/\/www.pimpampum.net\/en\/wp-json\/wp\/v2\/posts\/8613\/revisions\/8641"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.pimpampum.net\/en\/wp-json\/wp\/v2\/media\/8628"}],"wp:attachment":[{"href":"https:\/\/www.pimpampum.net\/en\/wp-json\/wp\/v2\/media?parent=8613"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pimpampum.net\/en\/wp-json\/wp\/v2\/categories?post=8613"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pimpampum.net\/en\/wp-json\/wp\/v2\/tags?post=8613"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}