[Haskell-cafe] Re: [Haskell-beginners] Re: Accounting Engine in Haskell

Stephen Tetley stephen.tetley at gmail.com
Thu Jun 17 14:58:36 EDT 2010

Hi Patrick

Rendering is easy - Region is a characteristic function - so apply it
to all the coordinates in a bitmap (i.e. indexes in a 2D array) -
you'll get a black-and-white picture.

Conal Elliott's Pan and Jerzy Karczmarczuk's Clastic do this with an
extend "colour characteristic" function -@ type Picture = Point -> RGB
@- to make colour bitmaps rather than b&w ones.

Area, I'm not sure about. Maybe you good integrate the function
through a space, but this might not be a good idea.

Best wishes


More information about the Beginners mailing list