colorjs / Color Space
Licence: unlicense
Math & data behind color spaces and color conversions.
Stars: β 232
Programming Languages
javascript
184084 projects - #8 most used programming language
Labels
Projects that are alternatives of or similar to Color Space
React Native Color
Color components for React Native π
Stars: β 178 (-23.28%)
Mutual labels: color
Dynamic Support
A complete library to build Android apps with a built-in theme engine.
Stars: β 218 (-6.03%)
Mutual labels: color
React Colorpickr
A themeable colorpicker with HSL and RGB support for React
Stars: β 180 (-22.41%)
Mutual labels: color
Nord Terminal App
An arctic, north-bluish clean and elegant Terminal.app color theme.
Stars: β 198 (-14.66%)
Mutual labels: color
Dynamiccolor
Yet another extension to manipulate colors easily in Swift and SwiftUI
Stars: β 2,677 (+1053.88%)
Mutual labels: color
Flutter statusbarcolor
A package can help you to change your flutter app's statusbar's color or navigationbar's color programmatically.
Stars: β 203 (-12.5%)
Mutual labels: color
Rainbow
π Colorize commands output or STDIN using patterns.
Stars: β 217 (-6.47%)
Mutual labels: color
Color Picker
A simple color picker application written in pure JavaScript, for modern browsers.
Stars: β 180 (-22.41%)
Mutual labels: color
Prettyprint
Beautifully formatted output for your terminal π
Stars: β 195 (-15.95%)
Mutual labels: color
Contrast Swatch
π
°οΈ Image microservice for color contrast information
Stars: β 210 (-9.48%)
Mutual labels: color
Androidphotoshopcolorpicker
A fully featured Color picker Library for Android
Stars: β 220 (-5.17%)
Mutual labels: color
Uigradient
A simple and powerful library for using gradient layer, image, color
Stars: β 208 (-10.34%)
Mutual labels: color
Sketch
Sketch have a lot of basic functions to develop a drawing app for iPhone. Anyone can easily create drawing iOS Application.
Stars: β 229 (-1.29%)
Mutual labels: color
Php Console Spinner
Colorful highly configurable spinner for php cli applications (suitable for async apps)
Stars: β 225 (-3.02%)
Mutual labels: color

Conversions and data for color spaces. Demo.
Usage
var space = require('color-space');
//convert lab to lch
var result = space.lab.lch([80,50,60]);
You can require a separate space to reduce size significantly:
var rgb = require('color-space/rgb');
var hsl = require('color-space/hsl');
//convert rgb to hsl
rgb.hsl([200,230,100]);
API
<fromSpace>.<toSpace>(array);
<space>.name //space name
<space>.min //channel minimums
<space>.max //channel maximums
<space>.channel //channel names
<space>.alias //alias space names
Spaces
- [x] RGB β additive color model based on red, green and blue primary colors.
- [x] HSL β cylindrical-coordinates representation of RGB.
- [x] HSV, HSB
- [x] HWB
- [x] HSI β used for computer vision due to better separation of shapes in an image, comparing to HSL/HSB.
- [x] CMYK
- [x] CMY
- [x] XYZ
- [x] XYY (YXY)
- [x] LAB
- [x] LCHab
- [x] LUV
- [x] LCHuv
- [x] HSLuv
- [x] HPLuv
- [x] LABHunter
- [x] YUV
- [x] YIQ
- [x] YCgCo
- [x] YDbDr
- [x] YPbPr
- [x] YCbCr
- [x] YcCbcCrc
- [x] JPEG
- [x] XvYCC
- [x] UCS
- [x] UVW
- [ ] Munsell
- [ ] NCS
- [ ] PMS
- [ ] RAL
- [ ] TSL
- [ ] RG
- [ ] RGK
- [x] Coloroid β color space for architects and visual constructors, Hungarian Standard MSZ 7300 since 2000.
- [ ] OSA-UCS β accurately reprsenting uniform color differences, developed by the Optical Society of Americaβs Committee on Uniform Color Scales.
- [ ] HKS
- [x] LMS β represents sensitivity of the human eye to Long, Medium and Short wavelengths.
- [x] Cubehelix β colormaps for data visualization.
- [ ] Gray
- [ ] CIECAM02
- [ ] US Federal Standard 595
- [ ] Toyo
- [ ] PhotoYCC
- [x] HCG
- [ ] HCL
- [x] HSP
- [ ] HCY
- [x] YES β computationally effective color space for face recognition.
- [ ] British Standard Colour
- [ ] RG chromacity
- [ ] CIE DSH
- [ ] HSM
Contribute
Please fork, add color space with basic conversions to/from XYZ or RGB and tests. The goal of project is to provide the most complete set of color spaces with maximally minimal uniform API.
Credits
Thanks to all the color scientists, who devoted their lives to color research and delivered their knowledge to us, for now we can trust them and use their formulas and their code.
Backers
Support us with a monthly donation and help us continue our activities. [Become a backer]
Sponsors
Become a sponsor and get your logo on our README on Github with a link to your site. [Become a sponsor]
Related
- colormap β collection of colormaps to map colors of images/data. A replacement for visualising spaces like cubehelix.
- color-spectrum β convert spectrum to a color.
- color-interpolate β interpolate between color values.
- color-tool β color picker based on color-space.
Similar projects
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].