# Color 1.4.0 Released

**URL:** <https://www.ruby-forum.com/t/color-1-4-0-released/121709>\
**Category:** Ruby\
**Created:** [November 30, 2007, 4:43am UTC](https://www.ruby-forum.com/t/color-1-4-0-released/121709 "2007-11-30T04:43:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![austin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/77aa72/32.png) [@austin](https://www.ruby-forum.com/u/austin)\
**Post date:** [November 30, 2007, 4:43am UTC](https://www.ruby-forum.com/t/color-1-4-0-released/121709/1 "2007-11-30T04:43:29Z")

</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  
L_a_b\*) are not supported because Color does not yet support  
colour profiles,  
giving no meaningful way to convert colours in absolute colour  
spaces (like  
L_a_b\*, XYZ) to non-absolute colour spaces (like RGB).

```
Changes:

```

## Color 1.4.0 / 2007.02.11

```
* Merged Austin Z.'s color-tools library (previously part of 

```

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

---

<div class="post-metadata">

**Author:** ![austin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/77aa72/32.png) [@austin](https://www.ruby-forum.com/u/austin)\
**Post date:** [November 30, 2007, 5:08am UTC](https://www.ruby-forum.com/t/color-1-4-0-released/121709/2 "2007-11-30T05:08:36Z")

</div>

On Nov 29, 2007, at 8:41 PM, Austin Z. wrote:

> color version 1.4.0 has been released!
> 
> - [http://color.rubyforge.org/](http://color.rubyforge.org/)

looks like a great lib austin: thanks.

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

---

<div class="post-metadata">

**Author:** ![austin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/77aa72/32.png) [@austin](https://www.ruby-forum.com/u/austin)\
**Post date:** [November 30, 2007, 8:47am UTC](https://www.ruby-forum.com/t/color-1-4-0-released/121709/3 "2007-11-30T08:47:10Z")

</div>

On Fri, Nov 30, 2007 at 01:07:56PM +0900, ara.t.howard wrote:

> On Nov 29, 2007, at 8:41 PM, Austin Z. wrote:
> 
> > color version 1.4.0 has been released!
> > 
> > - [http://color.rubyforge.org/](http://color.rubyforge.org/)
> 
> looks like a great lib austin: thanks.

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

enjoy,

-jeremy
