1. NodeBox 1
    1. Homepage
    2. NodeBox 3Node-based app for generative design and data visualization
    3. NodeBox OpenGLHardware-accelerated cross-platform graphics library
    4. NodeBox 1Generate 2D visuals using Python code (Mac OS X only)
  2. Gallery
  3. Documentation
  4. Forum
  5. Blog

Icicle

A very basic algorithm, Icicle uses forty random paths that each draw razor-sharp forms. A few ovals provide a contrast to the sharp forms.

 

 

Source code:

size(600, 600)
 
def abstract():
 
    x = random(WIDTH)
    y = random(HEIGHT)
    beginpath(x, y)
    for i in range(1, random(20)):
        lineto(0, random(HEIGHT/i))
    endpath() 
 
    if random(100) > 80:
        w = random(20,80)
        oval(x-w*0.5, y-w*0.5, w, w)
 
background(0.95, 1, 1)
 
stroke(0, 0.5, random(0.5,0.75), 0.3)
strokewidth(0.25)
for i in range(40):
  fill(0, 0.5, random(0.5,0.75), 0.1 * 0.04*i)
  abstract()
 
nofill()
stroke(0.2, 0.2, 0.2)
strokewidth(0.5)
rect(0, 0, WIDTH, HEIGHT)
 
fill(1, 1, 1, 0.6)
rotate(-90)
font("Arial Bold", 20)
text("ICICLE", -10, 80)