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

Random spiraly thingy

Posted by mike.arney on Oct 15, 2009

Uses the colors library.

size (1490, 900)
 
colors = ximport("colors")
 
fill (0, 0, 0,)
 
clr = colors.rgb(0.6, 0.4, 0, 0.5)
 
yellowgreenish = colors.range(h=(0.01,0.02))
background( yellowgreenish() )
colors.shadow(alpha=0.05, blur=0.2)
 
for shape in range(10):
    
    stroke(clr.analog(angle=10, d=.1))
    
    xpos = (WIDTH/2)
    ypos = (HEIGHT/2)
    
    autoclosepath(False)
    beginpath(random(WIDTH), random(HEIGHT))
        
    for i in range(60):
        
        translate(xpos, ypos)
        transform(CORNER)
        rotate (i * 10)
 
        fill(random(1), 0, random(0.4), .02)
        beginpath(0, 0)
        curveto(10, random(10,400), 50, 50, random(50,450), random(50,450))
        autoclosepath(close=False)
        endpath()
        reset()


 
Posted by mike.arney on Oct 15, 2009