# \[ANN\] color 1.4.0 Released

**URL:** <https://rubytalk.org/t/ann-color-1-4-0-released/42622>\
**Category:** ruby-talk\
**Created:** [30 November 2007 03:41 UTC](https://rubytalk.org/t/ann-color-1-4-0-released/42622 "2007-11-30T03:41:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Austin\_Ziegler5](https://yyz1.discourse-cdn.com/flex029/user_avatar/rubytalk.org/austin_ziegler5/32/1985_2.png) [@Austin\_Ziegler5](https://rubytalk.org/u/Austin_Ziegler5)\
**Post date:** [30 November 2007 03:41 UTC](https://rubytalk.org/t/ann-color-1-4-0-released/42622/1 "2007-11-30T03:41:20Z")

</div>

color version 1.4.0 has been released!

\* \<[http://color.rubyforge.org/](http://color.rubyforge.org/)\>

The capabilities of the Color library are limited to pure mathematical  
manipulation of the colours based on colour theory without reference to colour  
profiles (such as sRGB or Adobe RGB). For most purposes, when working with the  
RGB and HSL colours, this won't matter. However, some colour models (like CIE  
&nbsp;&nbsp;&nbsp;&nbsp;L\*a\*b\*) are not supported because Color does not yet support  
colour profiles,  
&nbsp;&nbsp;&nbsp;&nbsp;giving no meaningful way to convert colours in absolute colour spaces (like  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L\*a\*b\*, XYZ) to non-absolute colour spaces (like RGB).

&nbsp;&nbsp;&nbsp;&nbsp;Changes:

## Color 1.4.0 / 2007.02.11  
&nbsp;&nbsp;&nbsp;&nbsp;\* Merged Austin Ziegler's color-tools library (previously part of the Ruby  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PDF Tools project) with Matt Lyon's color library.  
&nbsp;&nbsp;&nbsp;&nbsp;- The HSL implementation from the Color class has been merged into  
&nbsp;&nbsp;&nbsp;&nbsp;Color::HSL. Color is a module the way it was for color-tools.  
&nbsp;&nbsp;&nbsp;&nbsp;- A thin veneer has been written to allow Color::new to return a Color::HSL  
&nbsp;&nbsp;&nbsp;&nbsp;instance; Color::HSL supports as many methods as possible that were  
&nbsp;&nbsp;&nbsp;&nbsp;previously supported by the Color class.  
&nbsp;&nbsp;&nbsp;&nbsp;- Values that were previously rounded by Color are no longer rounded;  
&nbsp;&nbsp;&nbsp;&nbsp;fractional values matter.  
&nbsp;&nbsp;&nbsp;&nbsp;\* Converted to hoe for project management.  
&nbsp;&nbsp;&nbsp;&nbsp;\* Moved to the next step of deprecating Color::Name values; printing a  
&nbsp;&nbsp;&nbsp;&nbsp;warning for each use (see the history for color-tools 1.3.0).  
&nbsp;&nbsp;&nbsp;&nbsp;\* Print a warning on the access of either VERSION or  
COLOR\_TOOLS\_VERSION; the  
&nbsp;&nbsp;&nbsp;&nbsp;version constant is now COLOR\_VERSION.  
&nbsp;&nbsp;&nbsp;&nbsp;\* Added humanized versions of accessors (e.g., CMYK colours now  
have both #cyan  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;and #c to access the cyan component of the colour; #cyan  
provides the value  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;as a percentage).  
&nbsp;&nbsp;&nbsp;&nbsp;\* Added CSS3 formatters for RGB, RGBA, HSL, and HSLA outputs. Note that the  
&nbsp;&nbsp;&nbsp;&nbsp;Color library does not yet have a way of setting alpha opacity, so the  
&nbsp;&nbsp;&nbsp;&nbsp;output for RGBA and HSLA are at full alpha opacity (1.0). The values are  
&nbsp;&nbsp;&nbsp;&nbsp;output with two decimal places.  
&nbsp;&nbsp;&nbsp;&nbsp;\* Applied a patch to provide simple arithmetic colour addition and  
subtraction  
&nbsp;&nbsp;&nbsp;&nbsp;to Color::GrayScale and Color::RGB. The patch was contributed by Jeremy  
&nbsp;&nbsp;&nbsp;&nbsp;Hinegardner \<[jeremy@hinegardner.org](mailto:jeremy@hinegardner.org)\>. This patch also provides the  
ability to  
&nbsp;&nbsp;&nbsp;&nbsp;return the maximum RGB value as a grayscale colour.  
&nbsp;&nbsp;&nbsp;&nbsp;\* Fixed two problems reported by Jean Krohn \<[jb.krohn@free.fr](mailto:jb.krohn@free.fr)\> against  
&nbsp;&nbsp;&nbsp;&nbsp;color-tools relating to RGB-to-HSL and HSL-to-RGB conversion. (Color and  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;color-tools use the same formulas, but the ordering of the  
calculations is  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;slightly different with Color and did not suffer from this problem;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;color-tools was more sensitive to floating-point values and precision  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;errors.)  
&nbsp;&nbsp;&nbsp;&nbsp;\* Fixed an issue with HSL/RGB conversions reported by Adam Johnson  
&nbsp;&nbsp;&nbsp;&nbsp;\<[adam.sven.johnson@gmail.com](mailto:adam.sven.johnson@gmail.com)\>.  
&nbsp;&nbsp;&nbsp;&nbsp;\* Added an Adobe Color swatch (Photoshop) palette reader,  
&nbsp;&nbsp;&nbsp;&nbsp;Color::Palette::AdobeColor (for .aco files only).

> **···**
>
> --  
> Austin Ziegler \* [halostatue@gmail.com](mailto:halostatue@gmail.com) \* [http://www.halostatue.ca/](http://www.halostatue.ca/)  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\* [austin@halostatue.ca](mailto:austin@halostatue.ca) \* [http://www.halostatue.ca/feed/](http://www.halostatue.ca/feed/)  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\* [austin@zieglers.ca](mailto:austin@zieglers.ca)

---

<div class="post-metadata">

**Author:** ![a11](https://yyz1.discourse-cdn.com/flex029/user_avatar/rubytalk.org/a11/32/8169_2.png) [@a11](https://rubytalk.org/u/a11)\
**Post date:** [30 November 2007 04:07 UTC](https://rubytalk.org/t/ann-color-1-4-0-released/42622/2 "2007-11-30T04:07:56Z")

</div>

looks like a great lib austin: thanks.

a @ [http://codeforpeople.com/](http://codeforpeople.com/)

> **···**
>
> On Nov 29, 2007, at 8:41 PM, Austin Ziegler wrote:
> 
> > color version 1.4.0 has been released!
> > 
> > \* \<[http://color.rubyforge.org/&gt](http://color.rubyforge.org/&gt);
> 
> --  
> share your knowledge. it's a way to achieve immortality.  
> h.h. the 14th dalai lama

---

<div class="post-metadata">

**Author:** ![Jeremy\_Hinegardner](https://avatars.discourse-cdn.com/v4/letter/j/65b543/32.png) [@Jeremy\_Hinegardner](https://rubytalk.org/u/Jeremy_Hinegardner)\
**Post date:** [30 November 2007 07:46 UTC](https://rubytalk.org/t/ann-color-1-4-0-released/42622/3 "2007-11-30T07:46:38Z")

</div>

Its good to see a new release of color. I've always enjoyed it.

enjoy,

-jeremy

> **···**
>
> On Fri, Nov 30, 2007 at 01:07:56PM +0900, ara.t.howard wrote:
> 
> > On Nov 29, 2007, at 8:41 PM, Austin Ziegler wrote:
> > 
> > > color version 1.4.0 has been released!
> > > 
> > > \* \<[http://color.rubyforge.org/&gt](http://color.rubyforge.org/&gt);
> > 
> > looks like a great lib austin: thanks.
> 
> # --
> 
> Jeremy Hinegardner jeremy@hinegardner.org
