Jay McGavren's Journal

2009-10-19

Ruby on Acid: ConstantGenerator...

It seems obvious, in retrospect, that a little stability was needed with all this randomness…

@f.factory_pool << RubyOnAcid::ConstantFactory.new(rand)

In the image below, one of the Y coordinates is hooked up to a ConstantGenerator whose get_unit() always returns 0.5, hence, always halfway down the screen.

picture-1.png

Similarly:

picture-6.pngpicture-9.pngpicture-8.png

comments powered by Disqus