Skip to content

Commit

Permalink
update docs and changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregor Aisch committed May 29, 2017
1 parent 3f74b67 commit 1b311f3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 1.3.4
* passing *null* as mode in scale.colors will return chroma objects

# 1.3.3

* added [color.clipped](https://gka.github.io/chroma.js/#color-clipped)
Expand Down
1 change: 1 addition & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,7 @@ <h4 id="-num-format-hex-">(num, format=&#39;hex&#39;)</h4>
<pre><code class="lang-js">chroma.scale(&#39;OrRd&#39;).colors(5);
chroma.scale([&#39;white&#39;, &#39;black&#39;]).colors(12);
</code></pre>
<p>If you want to return <code>chroma</code> instances just pass <em>null</em> as <code>format</code>.</p>
<h3 id="scale-classes">scale.classes</h3>
<h4 id="-numorarray-">(numOrArray)</h4>
<p>If you want the scale function to return a distinct set of colors instead of a continuous gradient, you can use <code>scale.classes</code>. If you pass a number the scale will broken into equi-distant classes:</p>
Expand Down
2 changes: 2 additions & 0 deletions docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,8 @@ chroma.scale('OrRd').colors(5);
chroma.scale(['white', 'black']).colors(12);
```

If you want to return `chroma` instances just pass *null* as `format`.

### scale.classes
#### (numOrArray)

Expand Down

0 comments on commit 1b311f3

Please sign in to comment.