Mark Stock

Colorfield

Colorfield is a simple command-line tool for creating an array of related colors. It does this by randomly marching through either an RGB or HSV colorspace. Options control the spatial and color variance, and output is to a PNG file. It is a single ANSI C file and requires only the PNG libraries.

Files

The current version of Colorfield is 0.1. You can download it here: colorfield.c. On Linux, build it with:
gcc -o colorfield colorfield.c -lm -lpng -O3 -ffast-math
on OSX, if you have Xcode installed, you can do:
gcc -o colorfield colorfield.c -I/Developer/SDKs/MacOSX10.5.sdk/usr/X11/include -L/Developer/SDKs/MacOSX10.5.sdk/usr/X11/lib -lm -lpng -O3 -ffast-math
or, to cross-compile for Windows on Linux, try:
i386-mingw32-gcc -o colorfield.exe colorfield.c -lm -lpng -O3 -ffast-math

Features

Colorfield supports the following options:

Images

Panchromatic scale using RGB:
colorfield -seed 259 -x 1025 -y 1025 -rgb
A nice set of blues stumbled upon by the random walker:
colorfield -seed 259 -x 1025 -y 1025 -hsv -n 400 400 400

March through HSV space, faster through value than other dimensions:
colorfield -hsv -x 200 -y 1000 -8 -s 0.2 0.2 0.5 -n 10000 100 100
A set that mainly clipped to black:
colorfield -hsv -8 -b 0.18 0.15 0.14 -n 11000 100 30 -s 0.01 1.0 1.5


Future plans

Future versions of Colorfield may include the following:

Please e-mail me if you'd like to see some particular feature in Colorfield, or if you use it to make something creative.