{"id":24641,"date":"2022-08-03T21:56:05","date_gmt":"2022-08-04T02:56:05","guid":{"rendered":"http:\/\/blog.kenperlin.com\/?p=24641"},"modified":"2022-08-03T21:56:05","modified_gmt":"2022-08-04T02:56:05","slug":"widget-wednesdays-31","status":"publish","type":"post","link":"http:\/\/blog.kenperlin.com\/?p=24641","title":{"rendered":"Widget Wednesdays #31"},"content":{"rendered":"<p>Continuing with the grid theme, I was wondering what would happen if, in my recent seven sisters example, each of the moving squares were to leave a trail. This would give a better sense of how things are moving over time. Also, they would then have interesting shapes, and therefore become more like creatures.<\/p>\n<p>One thing led to another, and I ended up increasing both the size of the grid and the number of creatures. The current grid has 160&#215;160 squares, and is inhabited by 200 roving creatures.<\/p>\n<p>I also changed it so that the creatures don&#8217;t ever leave the space. The way I do this is to detect when a creature hits one of the walls. When that happens, the creature now bounces off that wall, so that it will remain in play.<\/p>\n<p>You can see the result <a href=\"http:\/\/kenperlin.com\/paths\/\">here<\/a>. As usual, you can click on the word at the very bottom of the page to open up and play with the source code.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Continuing with the grid theme, I was wondering what would happen if, in my recent seven sisters example, each of the moving squares were to leave a trail. This would give a better sense of how things are moving over time. Also, they would then have interesting shapes, and therefore become more like creatures. One &hellip; <a href=\"http:\/\/blog.kenperlin.com\/?p=24641\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Widget Wednesdays #31&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/blog.kenperlin.com\/index.php?rest_route=\/wp\/v2\/posts\/24641"}],"collection":[{"href":"http:\/\/blog.kenperlin.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.kenperlin.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.kenperlin.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.kenperlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=24641"}],"version-history":[{"count":1,"href":"http:\/\/blog.kenperlin.com\/index.php?rest_route=\/wp\/v2\/posts\/24641\/revisions"}],"predecessor-version":[{"id":24642,"href":"http:\/\/blog.kenperlin.com\/index.php?rest_route=\/wp\/v2\/posts\/24641\/revisions\/24642"}],"wp:attachment":[{"href":"http:\/\/blog.kenperlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=24641"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.kenperlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=24641"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.kenperlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=24641"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}