ePiX provides color output via the pstcol package, using the rgb and cmyk models. Gray shading of regions is supported through eepic.sty (without requiring pstcol). Colors are best previewed by converting the document to Postscript or PDF. Alternatively, EPS files can be previewed in xdvi.
An rgb color is determined by three floating-point densities
between 0 (no color) and 1 (full saturation). A cmyk color
is similarly specified by four floats. Densities outside the
range are ``clipped''. Like line style, a color remains in
effect until superseded. Seven primary colors and white are available
by name. (Drawing in white can be used like correction fluid
to remove pieces of a figure accurately.)
red(); // rgb(1,0,0); magenta(0.6); // cmyk(0,0.6,0,0); rgb(0.2,0.7,0.8); // custom color