All Projects โ†’ avp โ†’ Spectra

avp / Spectra

Licence: mit
A Javascript color library. Quickly manipulate and convert colors.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Spectra

anypalette.js
๐ŸŽจ Read/write all color palette file formats โค๐Ÿงก๐Ÿ’›๐Ÿ’š๐Ÿ’™๐Ÿ’œ
Stars: โœญ 41 (-82.55%)
Mutual labels:  color, javascript-library
Sketch
Sketch have a lot of basic functions to develop a drawing app for iPhone. Anyone can easily create drawing iOS Application.
Stars: โœญ 229 (-2.55%)
Mutual labels:  color
Uigradient
A simple and powerful library for using gradient layer, image, color
Stars: โœญ 208 (-11.49%)
Mutual labels:  color
Dynamic Support
A complete library to build Android apps with a built-in theme engine.
Stars: โœญ 218 (-7.23%)
Mutual labels:  color
Handtrack.js
A library for prototyping realtime hand detection (bounding box), directly in the browser.
Stars: โœญ 2,531 (+977.02%)
Mutual labels:  javascript-library
Php Console Spinner
Colorful highly configurable spinner for php cli applications (suitable for async apps)
Stars: โœญ 225 (-4.26%)
Mutual labels:  color
Snap.svg
The JavaScript library for modern SVG graphics.
Stars: โœญ 13,346 (+5579.15%)
Mutual labels:  javascript-library
Collectable
High-performance immutable data structures for modern JavaScript and TypeScript applications. Functional interfaces, deep/composite operations API, mixed mutability API, TypeScript definitions, ES2015 module exports.
Stars: โœญ 233 (-0.85%)
Mutual labels:  javascript-library
Dynamiccolor
Yet another extension to manipulate colors easily in Swift and SwiftUI
Stars: โœญ 2,677 (+1039.15%)
Mutual labels:  color
Rainbow
๐ŸŒˆ Colorize commands output or STDIN using patterns.
Stars: โœญ 217 (-7.66%)
Mutual labels:  color
Typy
Minimal JavaScript type checking library
Stars: โœญ 215 (-8.51%)
Mutual labels:  javascript-library
Contrast Swatch
๐Ÿ…ฐ๏ธ Image microservice for color contrast information
Stars: โœญ 210 (-10.64%)
Mutual labels:  color
Inquirer.js
A collection of common interactive command line user interfaces.
Stars: โœญ 15,378 (+6443.83%)
Mutual labels:  javascript-library
Colors.lol
๐ŸŽจ Overly descriptive color palettes
Stars: โœญ 207 (-11.91%)
Mutual labels:  color
Color Space
Math & data behind color spaces and color conversions.
Stars: โœญ 232 (-1.28%)
Mutual labels:  color
Reusable
Reusable is a library for state management using React hooks
Stars: โœญ 207 (-11.91%)
Mutual labels:  javascript-library
Marvinj
Javascript Image Processing Framework based on Marvin Framework
Stars: โœญ 213 (-9.36%)
Mutual labels:  javascript-library
Androidphotoshopcolorpicker
A fully featured Color picker Library for Android
Stars: โœญ 220 (-6.38%)
Mutual labels:  color
React
MOVED TO https://github.com/myitcv/x/blob/master/react/_doc/README.md
Stars: โœญ 234 (-0.43%)
Mutual labels:  javascript-library
Rhino3dm
Libraries based on OpenNURBS with a RhinoCommon style
Stars: โœญ 232 (-1.28%)
Mutual labels:  javascript-library

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].