This modules provides some utility functions to handle colors and color space conversions.
The interface has been kept simple, so that most functions can be called "inline" when making calls to graphics libraries such as GD, Tk, or when generating HTML/CSS. (E.g. for GD: '$c = $img->colorAllocate( hsv2rgb( 270, 0.5, 0.3 ) );'.)
Features:
Color Space Conversions
Color space conversions, in particular between the "intuitive" color spaces HSV (Hue/Saturation/Value) and HLS (Hue/Lightness/Saturation) to and from RGB (Red/Green/Blue).
Color Lookup
Color lookup by name for three standard sets of colors: WWW/CSS, SVG, and X11.
Color Gradients
Management of color gradients, which can be indexed by a floating point number in the range 0..1. (Mostly intended for false-color data visualization.)
Package Version | Update ID | Released | Package Hub Version | Platforms | Subpackages |
---|---|---|---|---|---|
0.17-bp156.3.1 info | GA Release | 2023-07-22 | 15 SP6 |
|
|
0.17-bp155.2.10 info | GA Release | 2023-05-17 | 15 SP5 |
|
|
0.17-bp154.1.19 info | GA Release | 2022-05-09 | 15 SP4 |
|
|
0.17-bp153.1.14 info | GA Release | 2021-03-06 | 15 SP3 |
|
|
0.17-bp152.1.9 info | GA Release | 2020-04-16 | 15 SP2 |
|
|