Functional Images
- Conal Elliott
There have been many libraries for generating images using functional programming, each based on its own fixed set of geometric primitives and combinators. In contrast, this paper addresses the general notion of images, based on a very simple model: functions over continuous 2D space. Spatial transforms are mappings from 2D space to itself, and regions are just Boolean-valued images. This basis suffices for giving elegant expression to a wide range of images, as we illustrate through many examples. The library Pan embodying these ideas is freely available, and we hope to inspire others to join in the delightful search for new visual building blocks.