Pancito

Pancito is a Haskell module for manipulating functional images and then saving them to disk. It was inspired by Pan.

You might be best starting with the Introduction to Pancito.

Pancito 2.2

Pancito 2.2 adds better output code (tiling, progress meter) and type classes to Pancito 2.1. These changes make my life easier as I develop new images.

It also has a couple of extra extensions to support images of pixellated displays (TV screens) and to carry the Jacobean (or any other value) through transforms (which lets you simulate how light travels through a refractive medium, giving the image to the left, for example).

The source is now packaged in a single tar-ball: download. The manual is also available: [ps], [pdf]

image of light shining through water

Pancito 2.1

Pancito 2.1 extends 2.0, allowing images to be read from files (so you can process already-existing images). Note that only text based ppm files are supported (a very inefficient format, but easy to read/write).

Please note that Pancito 2.0/2.1 is incompatible with Pancito 1.0.

The image to the right was constructed using the gimp with a photo transformed via pancito (more details).

New: An Introduction to Pancito.

processed street image

Pancito 2.0

Pancito 2.0 is no longer available - please use Pancito 2.1 (above).

previous latest addition

test image

Pancito 1

The following files are available:

  • A description of, and guide to, Pancito (select a format): [pdf] [postscript].
  • The Pancito source (this is both valid Haskell - it can be compiled by ghc, hugs, and nhc98 - and the basis of the documents above).
  • A Latex style file that makes literate programming in Haskell simple.

All the images below use the version 1...

test image

Red Square 1 is an example of what is possible using Pancito.

A document containing both the image and a description of the code is available (select a format): [pdf] [postscript].

The source can also be downloaded.

Red Square 2 is a more traditional "computer" image.

This isn't really what I want - I'm still learning here - but it's interesting (for me, at least) to compare with Temblor (and unfortunately more is clearly less!). The (illiterate ;-) source is available.

another image
yet another image

Dots (C14)

The C series is a collection of images exploring a single theme. The code is here: [pdf] [postscript] [source].

Grid (C1) | Chance (C2) | Dots (C3) | Dots (C4) | Dots (C5) | Dots (C6) | Dots (C7) | Crosses (C8) | Dots (C9) | Chance (C10) | Crosses (C11) | Crosses (C12) | Dots (C13) | Dots (C14) | Dots (C15) | Dots (C16) | Index