spectra

A Javascript color library. Quickly manipulate and convert colors.

Github星跟踪图

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.

主要指标

概览
名称与所有者avp/spectra
主编程语言JavaScript
编程语言CoffeeScript (语言数: 3)
平台
许可证MIT License
所有者活动
创建于2013-08-13 06:37:12
推送于2017-11-29 19:01:43
最后一次提交2017-11-29 11:01:42
发布数7
最新版本名称v0.2.4 (发布于 )
第一版名称v0.1.0-beta.1 (发布于 )
用户参与
星数237
关注者数7
派生数14
提交数176
已启用问题?
问题数15
打开的问题数5
拉请求数12
打开的拉请求数1
关闭的拉请求数1
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?