Showing posts with label script. Show all posts
Showing posts with label script. Show all posts

Monday, May 11, 2009

Grasshopper: <3 the GUI.







































I'm taking a little time to learn Grasshopper. I hear, see, and realize that it's what all the cool kids are up to. And I've always wanted to be one of the cool kids, despite never quite having pulled it off. Just the same, incomparison to Generative Components, I'm a huge fan of the interface. This isn't to say that Grasshopper is necessarily better (or worse!) than GC, just that it's much, much prettier. Pop culture seems to indicate that 'pretty' can carry something a good, long way.

100% spirals + sine waves for now.
Architecture later. Hopefully.


Friday, March 20, 2009

Script: Old pattern, new colors













A B+W version of this had been my background for some time. Needing some time away from monocromatic themes, I added a few bits of code for random color values and re-ran the script.

int R = int(random(100,255));
int G = int(random(100,255));
int B = int(random(100,255));

fill(R,G,B,90);

10000x itterations shown above.

Saturday, February 28, 2009

Script: Triangles Generated in 3D

Frame #1300000.
One bounding corner of a much larger object.
Randomly located triangles, each connected to the last.
My first implementation of perspective within processing...


Monday, February 2, 2009

script: texture

processing:
a pattern study of texture.
each circle is connected via a thin transparent line which, through iteration, creates an additive visual grain. below is the result of 50k loops of this simple function.






























int xW = 3360;
int yH = 1050;

void setup(){
  background(150);
  size(xW,yH);
}

void draw(){
  
 // for (int i = 0; i <>
  
  //noLoop();
  int xRAN = int(random(0,xW));
  int xCIR = int(random(10,100));
  int xLEG = int(random(50,1200));
  int xLEG2 = int(random(50,1200));
  int rVAL = int(random(-8,8));
  
// drawINSTANCE (x-position, circle-radius, legnth)
  drawINSTANCE(xRAN, xCIR, xLEG, xLEG2, rVAL);
  
//  }
}

void drawINSTANCE(int xRAN, int xCIR, int xLEG, int LEG2, int rVAL)
{
//display settings

int R = int(random(100,255));
int G = int(random(100,255));
int B = int(random(100,255));

smooth();
stroke(0,20);
fill(255,90);


//end settings
  
  
//start
pushMatrix();
translate(xRAN,0);

line(0,0,0,xLEG);
ellipse(0,0,xCIR/8,xCIR/8);

pushMatrix();
translate(0,xLEG);
ellipse(0,0,xCIR/6,xCIR/6);

pushMatrix();
rotate(PI/rVAL);
line(0,0,0,xLEG);
translate(0,xLEG);
ellipse(0,0,xCIR/3,xCIR/3);

popMatrix();
popMatrix();
popMatrix();

    if((frameCount % 10000) == 0) {
    saveFrame("02test-########.tif");
    }
}

Thursday, January 1, 2009

genr8: maya/script modeling

genr8 studies in maya, rendered in maxwell
















































dusting off a few genr8/maya models from grad school...