Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Lovely! It reminds me of some methods of generating images with genetic programming, e.g. Karl Sims, http://dahart.com, and http://picbreeder.org. The main difference being a stack-based representation versus a tree-based one. Some people do use stack-based genetic programming, so it would be fun to hook this up to one of those systems and evolve textures.

One nice feature in the above strand of research is that the output value, instead of being mapped to a greyscale, is mapped via a colour map to produce colour images.



if you provide a mapping function Stackie will generate colours too. It just uses a grey mapper if none is provided.

You can provide your own function that takes a number and returns an ARGB Int32, so for pretty flame you would just do.

  f.generate(Stackie.program("x1x-*5*dx4**y3*p+y!-"));
  var flame = f.getImageData(blackbody);




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: