Green Desktop Image Generator

Nikolaus Gradwohl2016-03-24T06:58:46+00:00

I wrote a simple processing sketch today that allows me to generate green,noise-based, blocky, desktop-background images. So if you are in urgend need of one of those - like me - copy the code below and run it in processing :-)

example

you can also Download a hires version in case you are to lazy to run the code yourself

void setup() {
  size(1960,1280);
  noLoop();
  noStroke();
  colorMode(HSB, 255,255,255);
}

float s = 50;
void draw() {
  noiseSeed( frameCount );
  int wx = int(width/s);
  int wy = int(width/s);
  for( int x = 0; x<=wx; x++) {
    for( int y =0; y<=wy; y++) {
      fill( 50, 256, noise(x/2.0,y/2.0)*64+128);
      rect(x*s,y*s,s,s);
    }
  }
}

void keyPressed() {
  redraw();
}
Tweet This! submit to reddit Digg! Tags: | 1 comments | no trackbacks

See also:

sketch experiment 7 - osc events
nested cubes in processing
processing phaseflower
Time Perception
de jong attractor

Trackbacks

Comments

Leave a response

  1. Dedwarmo 2016-03-24T18:08:27+00:00

    I've never tried Processing before. I'll check it out.

Leave a comment