Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bitliner/angular-chroma
wrapper of chroma-js for angular
https://github.com/bitliner/angular-chroma
Last synced: about 20 hours ago
JSON representation
wrapper of chroma-js for angular
- Host: GitHub
- URL: https://github.com/bitliner/angular-chroma
- Owner: bitliner
- Created: 2014-11-21T10:04:03.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-09-02T06:57:21.000Z (over 9 years ago)
- Last Synced: 2025-01-10T12:50:47.998Z (14 days ago)
- Size: 186 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
angular-chroma
===================================Simple wrapper of [chroma-js](https://github.com/gka/chroma.js) to use chroma-js in angular.
# Installation
`bower install --save angular-chroma`
# Usage
1. include in your app dependencies Chroma
```
angular.module('YourApp',[
'chroma.angularChroma'
])
```2. then you can use it in your angular modules/controllers/services/directives
```
var scale=chroma.chroma.scale(['black','white']).domain([0,100],10);
scale(10).hex();
```