aimllib for processing

Posted by Nikolaus Gradwohl Fri, 15 May 2009 03:43:00 GMT

I have written an AIML processing library, that uses the chatterbean library by Hélio Perroni Filho. AIML is a xml based markuplanguage for creating agents and bots that respond to natrual language.

click here for a simple example (the example is also included in the library)

the library is released under the GPL

lets add some brain to those sketches :-)

Tags ,  | no comments | no trackbacks

Tweet This! submit to reddit Digg!

Tunnel effect in processing using copy

Posted by Nikolaus Gradwohl Sat, 09 May 2009 05:48:00 GMT

i worte a little tunnel effect using the copy command and a transparent rectangle in processing. i use no perlin noise in this sketch, just a plain random and copy command that scales the image and a transparent rect, to make the older pixel fade out. (don't ask me why it has to be 19 pixel less then width, but when i use 20 it gets dragged to the lower right corner)

copy(10, 10, width-19, height-19,0,0,width, height ); 
fill(0,10);
rect(0,0,width, height );

click here to see it in action

tunnle effect

Read more...

Tags  | 1 comment | no trackbacks

Tweet This! submit to reddit Digg!

Processing at the OCWD#2

Posted by Nikolaus Gradwohl Sat, 09 May 2009 04:34:00 GMT

on saturday the 2.May i was invited as a speaker to the second Osliper Computer-Workshop-Day. This time the workshop was about processing and arduino. read the summary by Franz on his blog (in German), to see some of the examples we made.

like the first OCWD (which was about python, django and pylons) it was really a whole lot of fun, and i'm looking forward to the next ones

Tags  | no comments | 1 trackback

Tweet This! submit to reddit Digg!

Skyline Generator

Posted by Nikolaus Gradwohl Mon, 04 May 2009 18:18:00 GMT

I worte a little skyline generator in processing.

click here to generate your own. Press any key to recreate the skyline if you don't like it

skyline

Tags  | no comments | no trackbacks

Tweet This! submit to reddit Digg!

accessing GIS data from Processing

Posted by Nikolaus Gradwohl Sun, 03 May 2009 17:50:00 GMT

I wrote a processing sketch to show how to access a wms service for showing a map. i use geoserver as a wms provider and the map shown in the screenshots is from http://thematicmapping.org/.

the map can be dragged with the mouse and zoomed with the scroll wheel

worldmap worldmap zoomed

Read more...

Tags , ,  | 4 comments | 1 trackback

Tweet This! submit to reddit Digg!

Two Minute Timer in mobile.processing

Posted by Nikolaus Gradwohl Sun, 26 Apr 2009 07:50:00 GMT

no system or programming language should be without it's 2 minute timer for all those GTD followers out there. so i made one in mobile.processing.

the programm starts a 120 sec countdown and sends the app in background. After 2 minutes the vibration alarm is activated for 1 second.

i made a qr-barcode that contains the link to the jad file. just point a qrcode reader like zxing to it and install it

install twominute timer

you can also use the direct link http://www.local-guru.net/mobileprocessing/twominutetimer/midlet/twominutetimer.jad (but i think it is a bit complicated to enter on a mobile phone)

Read more...

Tags , , ,  | 1 comment | no trackbacks

Tweet This! submit to reddit Digg!

another art generator in processing

Posted by Nikolaus Gradwohl Sun, 26 Apr 2009 06:14:00 GMT

a while ago i made an abstract art generator in processing. Now i made another one, drawing lines

click here to generate some images.

Tags ,  | 3 comments | no trackbacks

Tweet This! submit to reddit Digg!

gimp batchmode script

Posted by Nikolaus Gradwohl Fri, 24 Apr 2009 02:25:00 GMT

for my monstergallery and my pencil drawings i needed a tool that generates the preview icons for me. so i made a gimp script that can be run in batchmode.

The following scheme script defines a function named imagescale which takes a file pattern (like '' or '.png') and a width as paramter. the function iterates over the file list, opens each file fetches the original width and height and calculates the new image height so that the image proportions are preserved. than the image is scaled and saved as a new file by adding "icon-" as a prefix to the filename.

the function can be called in gimp batch mode with the following command

gimp -b '(imagescale "*" 100)' -b '(gimp-quit 0)'

put the script in your ~/.gimp-2.6/scripts folder

(define (imagescale pattern width)
  (let* ((filelist (cadr (file-glob pattern 1))))
    (while (not (null? filelist))
           (let* ((filename (car filelist))
                  (image (car (gimp-file-load RUN-NONINTERACTIVE filename filename)))
                  (drawable (car (gimp-image-get-active-layer image)))
                  (original-w (car (gimp-image-width image )))
                  (original-h (car (gimp-image-height image )))
                  (height (* original-h ( / width original-w ))) )
             (gimp-image-scale image width height)
             (gimp-file-save RUN-NONINTERACTIVE image drawable 
                (string-append "icon-" filename) (string-append "icon-" filename))
             (gimp-image-delete image))
           (set! filelist (cdr filelist)))))

Tags ,  | no comments | no trackbacks

Tweet This! submit to reddit Digg!

Happy Birthday Gameboy

Posted by Nikolaus Gradwohl Tue, 21 Apr 2009 02:47:00 GMT

gameboy

Tags ,  | no comments | no trackbacks

Tweet This! submit to reddit Digg!

counting sheep in processing

Posted by Nikolaus Gradwohl Tue, 21 Apr 2009 02:23:00 GMT

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

Tags  | 2 comments | no trackbacks

Tweet This! submit to reddit Digg!

Older posts: 1 ... 13 14 15 16 17 ... 28