mirror of
https://github.com/PitPik/colorPicker.git
synced 2025-08-24 01:22:48 -06:00
Clean up README spelling & style
This commit is contained in:
parent
1d462a61ce
commit
4ce232aea7
11
README.md
11
README.md
@ -1,7 +1,9 @@
|
|||||||
|
|
||||||
# colorPicker and colors
|
# colorPicker and colors
|
||||||
|
|
||||||
An advanced, fast and small (45.4KB, 19.5KB gZip) **javaScript** (framework independent) **color picker** (color chooser) that uses only one javaScript (x.min.js) file, so no extra HTML, CSS, images, etc... on IE9+ and internet browsers.<br />ColorPicker works in all browsers incl. IE6+ (an extra CSS has to be made to make it work in IE6 though and some additional setTimeout tricks to make it work in IE5.5)<br />
|
An advanced, fast and small (45.4KB, 19.5KB gZip) **JavaScript** (framework independent) **color picker** (color chooser) that uses only one javaScript (x.min.js) file, so no extra HTML, CSS, images, etc... on IE9+ and internet browsers.
|
||||||
|
|
||||||
|
ColorPicker works in all browsers incl. IE6+ (an extra CSS has to be made to make it work in IE6 though and some additional setTimeout tricks to make it work in IE5.5)<br />
|
||||||
**colorPicker.js** uses **colors.js**, a small but comprehensive tool for color conversions / calculations (WCAG 2.0, contrast, color difference, layer mix, etc.)...
|
**colorPicker.js** uses **colors.js**, a small but comprehensive tool for color conversions / calculations (WCAG 2.0, contrast, color difference, layer mix, etc.)...
|
||||||
|
|
||||||
With **colors.js** (~8.7k or way smaller if other color spaces and complex calculations are taken out...) you can also build your own simpler and / or smaller color pickers quite easy as demonstrated on the [demo page](http://dematte.at/cpn).<br />
|
With **colors.js** (~8.7k or way smaller if other color spaces and complex calculations are taken out...) you can also build your own simpler and / or smaller color pickers quite easy as demonstrated on the [demo page](http://dematte.at/cpn).<br />
|
||||||
@ -9,9 +11,10 @@ With **colors.js** (~8.7k or way smaller if other color spaces and complex calcu
|
|||||||
|
|
||||||
If you like it, don't be shy to click the ★ Star button ;o)
|
If you like it, don't be shy to click the ★ Star button ;o)
|
||||||
|
|
||||||
Now with new implementations for [javaScript](javascript_implementation) and [jQuery](jQuery_implementation)
|
Now with new implementations for [JavaScript](javascript_implementation) and [jQuery](jQuery_implementation)
|
||||||
|
|
||||||
## Demo & integration
|
## Demo & integration
|
||||||
|
|
||||||
See **demo** at [dematte.at/cpn](http://dematte.at/cpn) or check out a simple jQuery integration at [dematte.at/cpn/jQuery_implementation](http://www.dematte.at/cpn/jQuery_implementation/) and [jQuery_implementation/jqColor.js](jQuery_implementation) or the javaScript implementation at [dematte.at/cpn/javaScript_implementation](http://www.dematte.at/cpn/javaScript_implementation/) and [javascript_implementation/jsColor.js](javascript_implementation)
|
See **demo** at [dematte.at/cpn](http://dematte.at/cpn) or check out a simple jQuery integration at [dematte.at/cpn/jQuery_implementation](http://www.dematte.at/cpn/jQuery_implementation/) and [jQuery_implementation/jqColor.js](jQuery_implementation) or the javaScript implementation at [dematte.at/cpn/javaScript_implementation](http://www.dematte.at/cpn/javaScript_implementation/) and [javascript_implementation/jsColor.js](javascript_implementation)
|
||||||
|
|
||||||
<img src="images/screen-shot-all.png" />
|
<img src="images/screen-shot-all.png" />
|
||||||
@ -39,7 +42,7 @@ var myColors = new Colors({ // all options have a default value...
|
|||||||
```
|
```
|
||||||
## colorPicker.js
|
## colorPicker.js
|
||||||
|
|
||||||
colorPicker uses an instance of Colors and passes the options to it, so some values are the same...
|
colorPicker uses an instance of Colors and passes the options to it, so some values are the same:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
var myColorPicker = new ColorPicker({
|
var myColorPicker = new ColorPicker({
|
||||||
@ -79,7 +82,7 @@ var myColorPicker = new ColorPicker({
|
|||||||
|
|
||||||
## The color model, the methods and more
|
## The color model, the methods and more
|
||||||
|
|
||||||
After initializing Color or ColorPicker you'll get a clean but rhich model of the instance:
|
After initializing Color or ColorPicker you'll get a clean but rich model of the instance:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
myColors: {
|
myColors: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user