Skip to content

Commit

Permalink
Release v1.4;Fix #9
Browse files Browse the repository at this point in the history
  • Loading branch information
smallpath committed May 11, 2016
1 parent f5198d3 commit 0d9bb16
Showing 1 changed file with 22 additions and 6 deletions.
28 changes: 22 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,17 @@ resultColor;
The 4 editable text areas have shotcut keys:
press `` and `` to add/sub 1 , while with `Shift` to add/sub 10.

## Option
- Option is specified by `new colorPicker(colorArr)`

|Parameter | Type |Default| Description|
|:---------|:----:|:-----:|:----------:|
|colorArr |Array |[0,0,0]|The default color of colorPicker.Range from [0,0,0] to [1,1,1] |
## Input a default color
>The default color is specified by `new colorPicker(defaultColor)`
The default color is to be preselected in the ColorPicker,as RGB,HEX and HSB,or [1,1,1] for the platform default.

|Option | Type | Description|
|:--------|:----:|:----------:|
|RGB |Array |From [0,0,0] to [1,1,1] |
|LargeRGB |Array |From [0,0,0] to [255,255,255] |
|Hex |String|From "000000" to "FFFFFF" |
|ShortHex |String|"F7C" which means "FF77CC" |
|HSB |Array |From [0,0,0,"hsb"] to [360,100,100,"hsb"]|

## Screenshot
#### PS
Expand All @@ -50,6 +55,17 @@ press `↑` and `↓` to add/sub 1 , while with `Shift` to add/sub 10.
>[ESTK](https://raw.githubusercontent.com/Smallpath/AdobeColorPicker/master/_screenshot/ESTK.png)
## Changelog
#### v1.4
- Get the point from colour & Reset the position of cursor
- Much smoother moving with mouse pressed
- Support RGB, Hex and HSB in constructor
- Add support for short hex in hex field

#### v1.3
- ACP runs much faster than before
- Reduce 90% file size
- Fix invalid hex causing crash

#### v1.2
- No longer require the key-word 'new'
- Add cursor
Expand Down

0 comments on commit 0d9bb16

Please sign in to comment.