{"id":24282,"date":"2022-04-20T20:49:36","date_gmt":"2022-04-21T01:49:36","guid":{"rendered":"http:\/\/blog.kenperlin.com\/?p=24282"},"modified":"2022-04-20T20:49:36","modified_gmt":"2022-04-21T01:49:36","slug":"widget-wednesdays-16","status":"publish","type":"post","link":"http:\/\/blog.kenperlin.com\/?p=24282","title":{"rendered":"Widget Wednesdays #16"},"content":{"rendered":"<p>This evening I thought I would implement <a href=\"https:\/\/en.wikipedia.org\/wiki\/Conway%27s_Game_of_Life\">Conway&#8217;s Game of Life<\/a>. But after I did that, I decided it needed some sort of graphics twist, so that it wouldn&#8217;t just be yet another implementation of Conway&#8217;s Game of Life, if you know what I mean.<\/p>\n<p>So I decided that instead of displaying whether any one square was on or off, instead I would display the accumulated number of times that any square happened to be on, so it would look something was growing and coming to life. Then I decided it would be cool to make those squares gradually turn green, to suggest plant life.<\/p>\n<p>Once I committed to this more organic direction, I decided to go all in on making it feel like life emerging. So I made it all happen on a circular disk, rather than the more traditional square.<\/p>\n<p>When the program starts up, I seed the disk with random values (half of the squares are on and the other half are off). So every time you refresh the page, you grow a new life form.<\/p>\n<p>You can see the result <a href=\"http:\/\/kenperlin.com\/life\">here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This evening I thought I would implement Conway&#8217;s Game of Life. But after I did that, I decided it needed some sort of graphics twist, so that it wouldn&#8217;t just be yet another implementation of Conway&#8217;s Game of Life, if you know what I mean. So I decided that instead of displaying whether any one &hellip; <a href=\"http:\/\/blog.kenperlin.com\/?p=24282\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Widget Wednesdays #16&#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\/24282"}],"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=24282"}],"version-history":[{"count":1,"href":"http:\/\/blog.kenperlin.com\/index.php?rest_route=\/wp\/v2\/posts\/24282\/revisions"}],"predecessor-version":[{"id":24283,"href":"http:\/\/blog.kenperlin.com\/index.php?rest_route=\/wp\/v2\/posts\/24282\/revisions\/24283"}],"wp:attachment":[{"href":"http:\/\/blog.kenperlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=24282"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.kenperlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=24282"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.kenperlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=24282"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}