spectra

A Javascript color library. Quickly manipulate and convert colors.

Github stars Tracking Chart

Spectra

Build Status
Coverage Status
devDependency Status
npm Version
GA Beacon

A small Javascript library for quickly manipulating and converting colors.

Example

Spectra can be wrapped around many different types of objects to create a Spectra color that can be manipulated.

var color = Spectra({r: 255, g: 25, b: 75});
color.red() // 255

Motivation

The project was created to have a highly functional and lightweight way to deal with colors using Javascript, without any dependencies.

Installation

Simply download spectra.min.js and include it before your source files.

Bower

The bower package is at spectrajs.

bower install spectrajs

Node

This module also works with Node. Simply run npm install spectra and use var Spectra = require('spectra') to set it up.

API Reference

Refer to http://avp.github.io/spectra for reference on how to use Spectra.

Tests

There are Jasmine tests included in the tests folder. Simply run grunt test from the root of the repository to run the tests. This also checks JSHint. Alternatively, run grunt to keep watch over source and test files, and automatically rerun the tests when the files change.

Coverage

Test coverage information can be generated by running grunt karma. Coverage information will be located in test/coverage after generation.

Building

To minify Spectra, run grunt build.

Contributing

View CONTRIBUTING.md for guidelines on how to contribute.

Main metrics

Overview
Name With Owneravp/spectra
Primary LanguageJavaScript
Program languageCoffeeScript (Language Count: 3)
Platform
License:MIT License
所有者活动
Created At2013-08-13 06:37:12
Pushed At2017-11-29 19:01:43
Last Commit At2017-11-29 11:01:42
Release Count7
Last Release Namev0.2.4 (Posted on )
First Release Namev0.1.0-beta.1 (Posted on )
用户参与
Stargazers Count237
Watchers Count7
Fork Count14
Commits Count176
Has Issues Enabled
Issues Count15
Issue Open Count5
Pull Requests Count12
Pull Requests Open Count1
Pull Requests Close Count1
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private