From: Mathieu Bouchard Date: 2002-08-29T13:58:58+09:00 Subject: Re: GridFlow 0.6.1 From: Tom Sawyer Date: Thu, 29 Aug 2002 13:33:45 +0900 References: * In-reply-to: * On Wed, 2002-08-28 at 22:28, Mathieu Bouchard wrote: > Here is a new release of GridFlow (a multi-dimensional dataflow > processing library for Ruby and jMax, specialized in pictures and video) could you tell us a little more about what GridFlow is, and what it is good for? what is its intended purpose? ________________________________________________________________ I designed it as a quite high level way to manipulate graphics. I use it to process camera input in realtime, mostly for artistic purposes. It's not the fastest tool but it's the most flexible of its kind. Here is a code sample: # generates recursive checkerboard pattern (munchies) in bluish colours. f0,f1 = (0..1).map { FObject["@for 0 64 1"] } f2 = FObject["@for 2 5 1"] # make vector (2,3,4) t0 = FObject["@outer ^"] # for combining all rows and columns t1 = FObject["@outer *"] # for generating colours gout = FObject["@out 64 64"] # open window # syntax: source.connect outlet,destination,inlet f0.connect 0,t0,0 f1.connect 0,t0,1 t0.connect 0,t1,0 f2.connect 0,t1,1 t1.connect 0,gout,0 [f2,f1,f0].each {|o| o.send_in 0 } # trigger those three objects ________________________________________________________________ Mathieu Bouchard http://artengine.ca/matju