counting sheep in processing

Nikolaus Gradwohl2009-04-21T04:23:00+02:00

Computer are very well suited for boring and repetitive work. I can't imagine anything more repetetive and boring than counting sheep. so i made a processing sketch that does it for me.

click here if you want to let your computer count some sheep for you.

of course the sheep counter is a long int

sheep counter

read more ...

processing bubbles

Nikolaus Gradwohl2009-04-13T21:44:00+02:00

here comes another completly useless processing sketch by me this time starring bubbles

ok, it's not that useless i changed the transparency of the bubbles according to the speed so slower bubbles seem to be more distant from the viewer than faster ones.

this generates a nice and simple parallax effect.

bubbles

read more ...

Digital Caleidoscop

Nikolaus Gradwohl2009-04-09T05:58:00+02:00

i made a digital caleidoscop using processing sketch click here to see it in action. I had to use openGL for this sketch so i'm not sure if it works as an applet on all plattforms. Download the code and run it as an app if the applet doesn't show anything.

caleidoscop

read more ...

processing.js in dashboard widget

Nikolaus Gradwohl2009-04-07T05:45:00+02:00

I managed to get processing.js - a javascript based processing clone - to run in an apple dashboard widget.

processing.js widget

read more ...

blooming tree in processing

Nikolaus Gradwohl2009-03-19T19:18:00+01:00

because spring is getting near, and everyone is googling for flowers and bees (i have about 10 hits a day all coming from google searching "ascii flower bee"),

i made a processing-sketch showing a blooming tree

every time the applet is started it grows it unique tree

bloom

read more ...

Boids Demo

Nikolaus Gradwohl2009-03-15T15:00:00+01:00

I just wrote a boids-demo in processing.

the boids obey the 3 rules defined by Craig Reynolds.

click here to see some boids flying around

boids

read more ...

how to detect presentmode in processing

Nikolaus Gradwohl2009-03-15T10:21:00+01:00

in processing sketches can be run in "present" mode. which means a frame is generated in fullscreen mode and the code of the sketch is centered on the screen.

to change the size of the actual sketch depending on wether presend mode is active or not
the following code can be used

void setup() {
    for ( int i = 0; i < args.length; i ++ ) {
      if ("--present".equals(args[i])) {
        present = true;
        break;
      }
    }
    if (present) {
      size(screen.width,screen.height, OPENGL);
    } else {
      size(600,600, OPENGL);
    }

    // do your normal setup stuff here
}
read more ...

3d Particle effect demo

Nikolaus Gradwohl2009-03-15T10:15:00+01:00

i used the makeTexture method from my firefly sketch to make a 3d particle demo

click here to download the sourcecode.

particles

read more ...

Digital Fireflies

Nikolaus Gradwohl2009-03-14T21:14:00+01:00

I made another processing sketch that showes something glowing

click here to see some fireflies whirrl
arround

fireflies

read more ...

Rotating Stereo Cubes

Nikolaus Gradwohl2009-03-14T09:18:00+01:00

I made my first 3d processing sketch that generates a stereo image for cross eyed viewing

click here to see the cubes rotate

rotating cube

read more ...