{"id":76,"date":"2010-09-01T18:05:54","date_gmt":"2010-09-01T10:05:54","guid":{"rendered":"http:\/\/www.magicandlove.com\/blog\/?p=76"},"modified":"2010-09-01T18:08:14","modified_gmt":"2010-09-01T10:08:14","slug":"context-free-art-tutorial-6","status":"publish","type":"post","link":"http:\/\/www.magicandlove.com\/blog\/2010\/09\/01\/context-free-art-tutorial-6\/","title":{"rendered":"Context Free Art &#8211; Tutorial 6"},"content":{"rendered":"<p>Today we start to think recursively. The following example uses a simple recursive definition of a SQUARE. In Context Free Art, we may not need to specify a stop condition when each iteration reduces its size, until eventually, the shape is too small to display.<\/p>\n<pre>startshape Shape1\r\n\r\nrule Shape3 {\r\n\tSQUARE {a -0.9}\r\n\tShape3 {s 0.9 r 7}\r\n}\r\n\r\nrule Shape2 {\r\n\t4 * {x 1} Shape3 {r 45}\r\n}\r\n\r\nrule Shape1 {\r\n\t4 * {y 1} Shape2 {}\r\n}\r\n<\/pre>\n<figure id=\"attachment_80\" aria-describedby=\"caption-attachment-80\" style=\"width: 480px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-80\" title=\"Recursive pattern\" src=\"http:\/\/www.magicandlove.com\/blog\/wp-content\/uploads\/2010\/09\/exercise021.png\" alt=\"\" width=\"480\" height=\"480\" srcset=\"http:\/\/www.magicandlove.com\/blog\/wp-content\/uploads\/2010\/09\/exercise021.png 480w, http:\/\/www.magicandlove.com\/blog\/wp-content\/uploads\/2010\/09\/exercise021-150x150.png 150w, http:\/\/www.magicandlove.com\/blog\/wp-content\/uploads\/2010\/09\/exercise021-300x300.png 300w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><figcaption id=\"caption-attachment-80\" class=\"wp-caption-text\">Recursive pattern<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Today we start to think recursively. The following example uses a simple recursive definition of a SQUARE. In Context Free Art, we may not need to specify a stop condition when each iteration reduces its size, until eventually, the shape is too small to display. startshape Shape1 rule Shape3 { SQUARE {a -0.9} Shape3 {s [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[13,12],"class_list":["post-76","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-context-free-art","tag-tutorial"],"_links":{"self":[{"href":"http:\/\/www.magicandlove.com\/blog\/wp-json\/wp\/v2\/posts\/76","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.magicandlove.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.magicandlove.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.magicandlove.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.magicandlove.com\/blog\/wp-json\/wp\/v2\/comments?post=76"}],"version-history":[{"count":4,"href":"http:\/\/www.magicandlove.com\/blog\/wp-json\/wp\/v2\/posts\/76\/revisions"}],"predecessor-version":[{"id":82,"href":"http:\/\/www.magicandlove.com\/blog\/wp-json\/wp\/v2\/posts\/76\/revisions\/82"}],"wp:attachment":[{"href":"http:\/\/www.magicandlove.com\/blog\/wp-json\/wp\/v2\/media?parent=76"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.magicandlove.com\/blog\/wp-json\/wp\/v2\/categories?post=76"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.magicandlove.com\/blog\/wp-json\/wp\/v2\/tags?post=76"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}