{"id":559,"date":"2022-09-22T23:42:29","date_gmt":"2022-09-22T23:42:29","guid":{"rendered":"https:\/\/www.courses.tegabrain.com\/printcode\/?p=559"},"modified":"2022-10-20T17:22:59","modified_gmt":"2022-10-20T17:22:59","slug":"week-3-generative-art","status":"publish","type":"post","link":"https:\/\/www.courses.tegabrain.com\/printcode\/week-3-generative-art\/","title":{"rendered":"Week 3 &#8211; Generative art"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Ice cream sketch: <a href=\"https:\/\/editor.p5js.org\/iguannalin\/sketches\/zr4K26owI\">https:\/\/editor.p5js.org\/iguannalin\/sketches\/zr4K26owI<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The generative ice cream sketch was fun to make, using the constraints of one instance of each shape function to create different randomly generated ice creams.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Shapes sketch: <a href=\"https:\/\/editor.p5js.org\/iguannalin\/sketches\/T5UetFy1N\">https:\/\/editor.p5js.org\/iguannalin\/sketches\/T5UetFy1N<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Creating the shapes sketch was a bit tricky as drawing the vertices for the shapes are very precise. I wrote a handy function to draw points on the canvas as I click, and then print out all the vertices to connect them, and I&#8217;m pretty happy with the 2 custom shapes I made with just the vertex() function and quadraticVertex().<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ice cream sketch: https:\/\/editor.p5js.org\/iguannalin\/sketches\/zr4K26owI The generative ice cream sketch was fun to make, using the constraints of one instance of each shape function to create different randomly generated ice creams. Shapes sketch: https:\/\/editor.p5js.org\/iguannalin\/sketches\/T5UetFy1N Creating the shapes sketch was a bit tricky as drawing the vertices for the shapes are very precise. I wrote a handy&hellip; <a class=\"more-link\" href=\"https:\/\/www.courses.tegabrain.com\/printcode\/week-3-generative-art\/\">Continue reading <span class=\"screen-reader-text\">Week 3 &#8211; Generative art<\/span><\/a><\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[16],"class_list":["post-559","post","type-post","status-publish","format-standard","hentry","category-homework","tag-week3","entry"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.courses.tegabrain.com\/printcode\/wp-json\/wp\/v2\/posts\/559","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.courses.tegabrain.com\/printcode\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.courses.tegabrain.com\/printcode\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.courses.tegabrain.com\/printcode\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.courses.tegabrain.com\/printcode\/wp-json\/wp\/v2\/comments?post=559"}],"version-history":[{"count":3,"href":"https:\/\/www.courses.tegabrain.com\/printcode\/wp-json\/wp\/v2\/posts\/559\/revisions"}],"predecessor-version":[{"id":562,"href":"https:\/\/www.courses.tegabrain.com\/printcode\/wp-json\/wp\/v2\/posts\/559\/revisions\/562"}],"wp:attachment":[{"href":"https:\/\/www.courses.tegabrain.com\/printcode\/wp-json\/wp\/v2\/media?parent=559"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.courses.tegabrain.com\/printcode\/wp-json\/wp\/v2\/categories?post=559"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.courses.tegabrain.com\/printcode\/wp-json\/wp\/v2\/tags?post=559"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}