{"id":345,"date":"2014-07-20T16:56:08","date_gmt":"2014-07-20T15:56:08","guid":{"rendered":"http:\/\/www.xinaesthetic.net\/?p=345"},"modified":"2014-08-21T02:52:44","modified_gmt":"2014-08-21T01:52:44","slug":"workshops-livegeneticcodelab","status":"publish","type":"post","link":"http:\/\/xinaesthwp.loc\/2014\/07\/workshops-livegeneticcodelab\/","title":{"rendered":"Workshops \/ LiveGeneticCodeLab"},"content":{"rendered":"
Over the past couple of years, I’ve presented a few coding workshops, both on my own and along with William Latham and Stephen Todd.<\/p>\n
Participants have been from a range of backgrounds; some artists and designers interested in exploring generative computer approaches, as well as programmers interested in experimenting with graphics. In future I’m keen on exposing people who might not have thought about programming to it in an approachable and fun way; in particular, I’m encouraged by the increased attention that computer science for children is getting, and feel strongly that generative graphics could be rewarding in that context.<\/p>\n
Workshops so far have been conducted with a variety of software systems, mostly web-browser based so that there is no complication in terms of setting up working environment etc. We work a bit with our own Organic Art \/ Mutator 2 codebase, which on the plus side is able to produce rich and interesting results but is rather demanding of graphics hardware and also not ideal in that we haven’t so far made it publicly available. The widely used Three.js library is very useful, but doesn’t have quite the immediacy of systems dedicated to live coding.<\/p>\n
I’ve been playing around with Davide dela Casa (and others)’s Livecodelab<\/a> a bit for a while, and have started to incorporate it (with modifications) as an increasingly dominant part of coding workshops. It’s oriented towards being extremely simple for naive users to pick up and start tinkering with, and although it certainly has some limitations in comparison to other systems, such limitations can be creatively useful and I see potential for using extended versions of this system as the basis for quite a bit of future work.<\/p>\n I’ve made a fork<\/a> to start to incorporate some features I tend to lean on heavily: video feedback in graphics, and mutation \/ genetic algorithms. Here is a ‘live’ version of this fork<\/a>; that link goes straight to a complex example, other simpler examples illustrating the new features in my fork can be found under ‘Demos\/Evolutionary’ in the menu. There is still some more work to be done to make something constituting a coherent tutorial; this is still a relatively early stage in the evolution of this system.<\/p>\n <\/p>\n So far, the genetic aspects aren’t quite ‘real’ genetic algorithms – the key functions usable for now are ‘gene’ (‘g’ for short) that is used to define parameters that can be evolved and ‘mutate’ that will randomise all thus named parameters. I have not quite decided exactly how the programming model for more advanced features should work: the extent to which they should attempt to interact with implementations we have already in other bits of code vs cleanly reimplementing, how much it should be based on a dedicated GUI for certain functions vs a more purely programmatic approach, etc.<\/p>\n Nonetheless, the current simple programmatic mechanic already allows for quite expressive ways of creating models; for example, in the snowflake image above, a 4*3 grid of unique snowflakes is drawn, each animating independently. There are only two lines of code on which the ‘g’ function is invoked to define genes, but because that is inside a ‘snowflake’ function which is called repeatedly, each time given an id unique to each snowflake which is then incorporated into the gene name, the resulting model effectively has 4*3*2 = 24 genes.<\/p>\n","protected":false},"excerpt":{"rendered":" Over the past couple of years, I’ve presented a few coding workshops, both on my own and along with William Latham and Stephen Todd. Participants have been from a range of backgrounds; some artists and designers interested in exploring generative … Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":383,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"kt_blocks_editor_width":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/xinaesthwp.loc\/wp-json\/wp\/v2\/posts\/345"}],"collection":[{"href":"http:\/\/xinaesthwp.loc\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/xinaesthwp.loc\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/xinaesthwp.loc\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/xinaesthwp.loc\/wp-json\/wp\/v2\/comments?post=345"}],"version-history":[{"count":10,"href":"http:\/\/xinaesthwp.loc\/wp-json\/wp\/v2\/posts\/345\/revisions"}],"predecessor-version":[{"id":405,"href":"http:\/\/xinaesthwp.loc\/wp-json\/wp\/v2\/posts\/345\/revisions\/405"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/xinaesthwp.loc\/wp-json\/wp\/v2\/media\/383"}],"wp:attachment":[{"href":"http:\/\/xinaesthwp.loc\/wp-json\/wp\/v2\/media?parent=345"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/xinaesthwp.loc\/wp-json\/wp\/v2\/categories?post=345"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/xinaesthwp.loc\/wp-json\/wp\/v2\/tags?post=345"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}