From: Bruce P. <bap...@te...> - 2003-10-28 22:55:40
|
Attached is a module colorsysts.py that some may find useful. This combines and extends a couple of modules that are already available the functionality includes the original colorsys module for transforming among color coordinate systems a named colors function to provide a wide range of color names a color interpolation module The last requires some explanation: I've found that mapping real valued variables onto a color space (say through Hue in a HSL space) is less than satisfactory -- the color mappings are not linear and the eye doesn't respond linearly either. The color interpolation function maps continuous values onto discrete sets of colors (3,4,5,8 or 11 values ) This provides a much more distinguishable response. Bruce Peterson, Ph.D. Terastat, Inc Information Access Systems Voice (425) 466 7344 Fax (206) 350 3685 |