GridFlow 0.6.1

References: *
In-reply-to: *

···

From: Tom Sawyer transami@transami.net
Date: Thu, 29 Aug 2002 13:33:45 +0900
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