Friday, May 6, 2011

Programming with Processing - # 2

So I will probably compile all of these programs and make the available on mediafire. I added to the code in the last code, I simply added the word grey scale in the center of the screen so you know when the program has finished.

int c;
void setup(){
  size (400, 400);
}
void draw(){
  background(c);
  c = c + 1;
  if (c > 255){
    textAlign(CENTER);
    fill(0);
    text("Grey Scale",width/2,200);
    noLoop();
  }
}

So I am sort of going through all of the processing tutorials while at the same time creating my own programs. Later I will possibly create a page dedicated to processing with download links to the full compiled programs and the source files. Enjoi.

No comments:

Post a Comment