0.2.1 • Published 8 years ago
angularCubicColorPicker v0.2.1
angularCubicColorPicker
Installation
npm install angularCubicColorPicker
Demo
Dependencies
<link rel="stylesheet" href="node_modules/cubicColorPicker/dist/css/cubicColorPicker.css">
<script src="node_modules/jquery/dist/jquery.min.js"></script>
<script src="node_modules/cubicColorPicker/dist/js/cubicColorPicker.js"></script>
<script src="node_modules/angular/angular.min.js"></script>
<script src="node_modules/gsap/src/minified/TimelineMax.min.js"></script>
<script src="node_modules/gsap/src/minified/TweenMax.min.js"></script>
<script src="node_modules/gsap/src/minified/utils/Draggable.min.js"></script>
<script src="dist/js/angularCubicColorPicker.js"></script>
```
Usage
-----
```html
<cubic-color-picker bind="variableOfScope"></cubic-color-picker>
```
##AND/OR
```html
<cubic-color-picker onchange="functionOfScope"></cubic-color-picker>
```
```javascript
scope.functionOfScope = function(newColor){
...
}
```
![preview](http://puu.sh/q44zS/5e0e96c2e0.png)