raining processing sketch

Posted by Nikolaus Gradwohl Sun, 08 Aug 2010 14:57:27 GMT

My latests simple but useless processing sketch was inspired by the weather we had last week :-/

click here to see it in action

rain

Tags  | no comments

Tweet This! submit to reddit Digg!

how to use the mousewheel in processing

Posted by Nikolaus Gradwohl Sun, 01 Aug 2010 18:16:38 GMT

Mouse-events like move, drag or click are very simple to implement in processing. Only the mouse-wheel needs some special handling.

To get the mouseWheel events in processing the sketch needs to register a mouseWheelListener int the setup method

void setup() {
  size(300,300);
  smooth();
  addMouseWheelListener(new java.awt.event.MouseWheelListener() { 
    public void mouseWheelMoved(java.awt.event.MouseWheelEvent evt) { 
      mouseWheel(evt.getWheelRotation());
  }}); 
}

and then a handler function that gets called by the listener every time the mousewheel is triggered

void mouseWheel(int delta) {
}

The value of delta indicates the direction and the speed by which that scroll-wheel has been turned.

Click here to see an applet that implements the callback function and zooms some rects.

Tags  | no comments

Tweet This! submit to reddit Digg!

Holliday Monsters

Posted by Nikolaus Gradwohl Fri, 30 Jul 2010 05:32:01 GMT

These are some monsters i found in during my holliday

Tags  | no comments

Tweet This! submit to reddit Digg!

some more new monsters

Posted by Nikolaus Gradwohl Sat, 03 Jul 2010 14:06:00 GMT

This is a bunch of new monsters I found or got sent from my friends and relatives

Tags  | no comments

Tweet This! submit to reddit Digg!

How to make fireworks, fountains, etc in processing

Posted by Nikolaus Gradwohl Fri, 02 Jul 2010 03:57:00 GMT

Particle effects look very fancy but are actually very easy to implement in processing. This is a small tutoral that shows how. The particle effect implemented here is 2-Dimentional but the same principles can be applied to a 3D version.

particles

Read more...

Tags ,  | 2 comments

Tweet This! submit to reddit Digg!

Day 30 of 30daysofcreativity

Posted by Nikolaus Gradwohl Thu, 01 Jul 2010 16:10:00 GMT

My Day 30 Project for 30daysofcreativity is a little processing firework

click here to see it in action

Day 30

Tags ,  | no comments

Tweet This! submit to reddit Digg!

Processing SpaceShooter ported to Processing.js

Posted by Nikolaus Gradwohl Tue, 29 Jun 2010 17:45:00 GMT

I just proted the example programm from my processing tutorial to processing.js. I only had to remove the private keywords from my classes and change tiny bits here and there. But i was really surprised how well everything went

click here to give it a try

tutorial

Tags , , ,  | no comments

Tweet This! submit to reddit Digg!

dropshadow in processing

Posted by Nikolaus Gradwohl Tue, 29 Jun 2010 03:16:00 GMT

I made a little "workflow"-diagram, that draws boxes with a little dropshadow. I do this by calling a paint method that does all the drawing. Then I apply a blur filter and shift the whole image slightly to the upper right. Then the paint method is called again, and draws the boxes, arrows, and text entries.

click here to run the applet and download the sourcecode.

shadow

Tags ,  | no comments

Tweet This! submit to reddit Digg!

a new pencil drawing

Posted by Nikolaus Gradwohl Mon, 28 Jun 2010 04:12:00 GMT

I made a new pencil-drawing yesterday

trapped

Tags ,  | no comments

Tweet This! submit to reddit Digg!

Custom Cookie Cutters for the Makerbot

Posted by Nikolaus Gradwohl Sun, 27 Jun 2010 17:34:00 GMT

Recently some very awsome cookiecutter-designs started to show up on thingiverse (like the escher cookie cutter or the jigsaw cookie cutter, and many more) (and one of the local radiostations has played "last cristmas", because it's only 6 months till x-mas O_o )

So i thought about how the generation of such custom cookie cutters could be simplified and i developed a custom cookie cutter generator in processing.

Click here to download the processing sketch.

Basically it's a very very simple vector graphic programm, where you can design the cookie form you want to have. to export the design as a stl file press the letter 'e'

this is my day 26 project for 30daysofcreativity

This is what the cookie-cutter-editor looks like

cookie-cutter-generator

This is what the generated stl file looks like

cookie-cutter in blender

And this is what the printed cookie-cutter looks like (still have to fiddle around with my skeinforge settings a bit)

cookie-cutter

Tags , , , , ,  | no comments

Tweet This! submit to reddit Digg!

Older posts: 1 2 3 4 ... 28