diff --git a/README.md b/README.md index 4e14629..b2c7fb1 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,8 @@ All the W3C 2.0 calculations for readability are also based on opacity levels of Supported color spaces are: (* also displayed as colors in realtime)
rgb *, hsv(b) *, hsl *, cmyk, cmy, Lab, XYZ, HEX +##How to use Color.js + ```javascript var myColors = new Colors({ // all options have a default value... color: 'rgba(204, 82, 37, 0.8)', // initial color (#RGB, RGB, #RRGGBB, RRGGBB, rgb(r, g, b), ...) @@ -28,6 +30,7 @@ var myColors = new Colors({ // all options have a default value... allMixDetails: false // if set to true, Colors deliveres some more mixed layer informations for all color layers }); ``` +##How to use colorPicker.js colorPicker uses an instance of Colors and passes the options to it, so some values are the same... @@ -67,6 +70,8 @@ var myColorPicker = new ColorPicker({ }); ``` +##The color model and more + After initializing Color or ColorPicker you'll get a clean but rhich model of the instance: ```javascript