top | item 29536703

Weird: Generative Art in Common Lisp

267 points| alaq | 4 years ago |github.com

20 comments

order

andybak|4 years ago

I've been trying to track that top image down for ages. This faux bokeh was a big inspiration for a VR piece I made: https://andybak.net/gossamer

(By "faux" I just mean this isn't simulating optics to any great level of realism)

I knew it was by inconvergent but I didn't think of looking on Github for some reason.

My implementation was actually different - I based mine on the work of Keijiro Takahashi: https://github.com/keijiro/VfxBokeh

shagie|4 years ago

For those inspired by this, they may also like context free art - https://www.contextfreeart.org

For example: https://www.contextfreeart.org/gallery/view.php?id=4223

  startshape lightning 
  
  shape lightning
  
  rule 20 {
      CIRCLE[r -60..60]
      lightning[y -1 s 0.99 r -10..10]
  }
  
  rule 1 {
      CIRCLE[r -60..60]
      lightning[y -1 s 0.5 r -50..-20]
      lightning[y -1 s 0.99 r -10..10]
  }
  
  rule 1 {
      CIRCLE[r -60..60]
      lightning[y -1 s 0.5 r 20..50]
      lightning[y -1 s 0.99 r -10..10]
  }

podiki|4 years ago

Beautiful, and in Common Lisp just makes it that much better for me. Thanks for sharing!

coldcode|4 years ago

As a generative artist I love seeing what other people do. Sadly I am not conversant in CL so its difficult to understand.

inconvergent|4 years ago

the most interesting part (as far as i'm concerned. i have some bias here ...) is the stuff about manipulating the graph structure. the concept is described in the readme, and does not rely that heavily on CL knowledge. it's not that the method is new or anything, just that i think it's a neat way to think about it. if you are interested in the code at large, then, yeah .. this isn't a good intro to CL.

marban|4 years ago

Awesome! Anyone seen an equivalent in Python?

dahart|4 years ago

Nodebox 1 is an amazing Mac only Python library & GUI for visual programming & generative art. https://www.nodebox.net/code/index.php/Home.html

Processing comes in a Python flavor as well, and is cross platform. https://py.processing.org/

BTW, it’s incredibly easy in Python to make generative art in many styles including the ones in this article using only an image output library.