<commit_before># css-color
css-color is a library for color conversion and manipulation with support for CSS color strings.

```javascript
var color = Color("#77E4FE");

color.red(120).lighten(.5);

console.log(color.hslString());  // "hsl(192, 99%, 110%)"
```	

# Install

#### browser
Download the latest [color.js](http://github.com/harthur/color/downloads). The `Color` object is exported.

#### node
For [node](http://nodejs.org) with [npm](http://npmjs.org):

	npm install color
	
And use with `var Color = require("color")`

# API

## Setters

```javascript
var color = Color("rgb(255, 255, 255)")
```
Pass any valid CSS string into `Color()`, like `"#FFFFFF"`, `"#fff"`, `"white"`, `"hsla(360, 100%, 100%, 0.5)"`

```javascript
var color = Color({r: 255, g: 255, b: 255})
```
You can also pass a hash of color values into `Color()`, keyed on `r` or `red` for example.

```javascript
var color = Color().rgb(255, 255, 255)
```
Load in color values with `rgb()`, `hsl()`, `hsv()`,and `cmyk()`. The arguments can also be an array or hash.

## Getters

```javascript
color.rgb()       // {r: 255, g: 255, b: 255}
```<commit_msg>a bit of readme formatting<commit_after># color
`color` is a library for color conversion and manipulation with support for CSS color strings.

```javascript
var color = Color("#77E4FE");

color.red(120).lighten(.5);

console.log(color.hslString());  // "hsl(192, 99%, 110%)"
```	

# Install

### browser
Download the latest [color.js](http://github.com/harthur/color/downloads). The `Color` object is exported.

### node
For [node](http://nodejs.org) with [npm](http://npmjs.org):

	npm install color
	
And use with `var Color = require("color")`

# API

## Setters

```javascript
var color = Color("rgb(255, 255, 255)")
```
Pass any valid CSS string into `Color()`, like `"#FFFFFF"`, `"#fff"`, `"white"`, `"hsla(360, 100%, 100%, 0.5)"`

```javascript
var color = Color({r: 255, g: 255, b: 255})
```
You can also pass a hash of color values into `Color()`, keyed on `r` or `red` for example.

```javascript
var color = Color().rgb(255, 255, 255)
```
Load in color values with `rgb()`, `hsl()`, `hsv()`,and `cmyk()`. The arguments can also be an array or hash.

## Getters

```javascript
color.rgb()       // {r: 255, g: 255, b: 255}
```
{'fraction_non_alphanumeric': 0.19920669898633758, 'fraction_numerical': 0.054649625385632436, 'mean_word_length': 4.391923990498812, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4381220', 'n_tokens_mistral': 927, 'n_tokens_neox': 781, 'n_words': 272}