Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
moagrius committed Aug 30, 2013
1 parent 6a1c807 commit e3b4132
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,9 @@ var color = new Color('#FF9900');
color.brightness(20);
element.style.backgroundColor = color;
console.log(color.getRGB());
console.log(color.saturation());</pre>
console.log(color.saturation());</pre>
<p>The component is equipped to handle the vagaries of the DOM, and should be able to parse any CSS color output automatically.</p>
<p>A number of other convenience methods exist, such as <a target="_blank" href="http://moagrius.github.io/Color/Color.html#interpolate">.interpolate</a>,
which smoothly blends one color to another, and <a target="_blank" href="http://moagrius.github.io/Color/Color.html#bind">.bind</a> that links a Color
instance with an object (e.g., a DOM element's style property, like background-color or (text) color), so that when the Color instance is mutated,
the bound object property will also be updated.</p>

0 comments on commit e3b4132

Please sign in to comment.