Skip to content

Commit

Permalink
documented blending, bumped version
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregor Aisch committed May 24, 2015
1 parent 5801fdb commit 57c59b6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions doc/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -315,3 +315,16 @@ Returns the [contrast ratio](http://www.w3.org/TR/WCAG20/#contrast-ratiodef) bet
chroma.contrast('white', 'navy') // 16.00 – ok
chroma.contrast('white', 'yellow') // 1.07 – not ok!
```

## chroma.blend.MODE(bottom, top)

Blends two colors using one of the following blend modes: normal, multiply, screen, overlay, darken, lighten, dodge, burn

```javascript
chroma.blend.multiply('pink', 'cyan').name() // '#00c0cb'
chroma.blend.screen('pink', 'cyan').name() // 'white'

// alternative syntax
chroma.blend('pink', 'cyan', 'multiply')
chroma('pink').blend('cyan', 'multiply')
```
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "chroma-js",
"description": "JavaScript library for color conversions",
"version": "0.7.3",
"version": "0.7.4",
"author": "Gregor Aisch",
"homepage": "https://github.com/gka/chroma.js",
"keywords": [
Expand Down

0 comments on commit 57c59b6

Please sign in to comment.