Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/instructure/color-slicer
Generate lists of readable text colors.
https://github.com/instructure/color-slicer
Last synced: 7 days ago
JSON representation
Generate lists of readable text colors.
- Host: GitHub
- URL: https://github.com/instructure/color-slicer
- Owner: instructure
- Created: 2013-12-27T16:39:59.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-05-28T22:51:11.000Z (over 9 years ago)
- Last Synced: 2024-10-10T12:24:07.026Z (about 1 month ago)
- Language: JavaScript
- Size: 232 KB
- Stars: 6
- Watchers: 16
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
color-slicer
=======Generate lists of readable text colors, starting at a given hue and
dividing the hue space into progressively smaller increments.Installation
------------`bower install color-slicer`
Or just download [dist/color-slicer.js](https://raw.github.com/instructure/color-slicer/master/dist/color-slicer.js).
Usage
-----```
var colorSlicer = require('color-slicer');
var count = myObjects.length;
var startHue = 180;
var colors = colorSlicer.getColors(count, startHue);
```See [dist/example.html](https://github.com/instructure/color-slicer/blob/master/dist/example.html).
Development
-----------1. Fork the repo
2. `npm install`
3. Create a new branch for your feature/bug fix
4. `grunt` to build and watch files.
5. `grunt test` to run tests.
6. Send a pull request.