Skip to content

Commit

Permalink
No longer require the key-word new
Browse files Browse the repository at this point in the history
  • Loading branch information
smallpath committed May 6, 2016
1 parent d35583b commit f16622b
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 48 deletions.
34 changes: 14 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
This is a rebuilt color picker for Adobe scripting.
Supporting all Adobe softwares such as PS,AI,AE and so on.

![AE](https://raw.githubusercontent.com/Smallpath/AdobeColorPicker/master/_screenshot/AE.png)
![AE](https://raw.githubusercontent.com/Smallpath/AdobeColorPicker/master/_screenshot/Animation.gif)

## Installation
Download the latest release.
Expand All @@ -18,28 +18,11 @@ To make production, don't miss the nice command `File->Export as binary` in ESTK
#### Copy and paste
Copy all lines in `colorPicker.js`, then paste them on the top of your code.

## Usage
The key-word `new` is required to get the color from an instance of colorPicker.

#### Simple as pie usage
Just pick up a color.

```
var resultColor = new colorPicker();
resultColor;
//The rgb Array you picked up,from [0,0,0] to [1,1,1];
## Simple as pie usage
```

#### Input a color usage
If you input a color,ColorPicker will not only return the color you picked up,but also change the origin color.

```
var color = [0.5,0.5,0.5];
var resultColor = new colorPicker(color);
var resultColor = colorPicker();
resultColor;
//The rgb Array you picked up,from [0,0,0] to [1,1,1];
color;
//The value of origin color has been changed to the result color;
```

## Tip
Expand Down Expand Up @@ -67,6 +50,13 @@ 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.2
- No longer require the key-word 'new'
- Add cursor
- Better brightness control
- Auto-highlights hex field on launch
- Doesn't affect user's 'old colour' at all

#### v1.1
- Reduce 33% size of colorPicker
- Enable process for mouse-move when left mouse is pressed
Expand All @@ -82,6 +72,10 @@ press `↑` and `↓` to add/sub 1 , while with `Shift` to add/sub 10.
## Contribution
If you find a bug or want to contribute to the color picker,please submit an issue or send a pull request

## Contributor
smallpath
zlovatt

## License
The MIT license

Expand Down
Binary file added _screenshot/Animation.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
63 changes: 35 additions & 28 deletions colorPicker.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f16622b

Please sign in to comment.