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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?