Giter VIP home page Giter VIP logo

seelab's Introduction

SeeLab

(It's like SeaLab but without the dolphins and submarines)

SeeLab - Processing for CIE spaces, parsing sRGB, and more - Beta 0.98

This object and methods parse sRGB color values, provide returns as strings, arrays, or numeric values, and process color data into and out of CIE standard spaces XYZ, xyY, LAB, LUV, LChab, LChuv, and a few other nifty things.

This project is an offshoot of the SAPC/APCA contrast project. This started as the sRGB input form, but has grown to include a number of useful methods including CIE processing, so I've made this a stand-alone library.

The "style.css" is for the color listing functions that list HTML color names with examples, and LUV colors, etc.

Usage Examples

var myColor = new RGBcolor(colorString)

Send a color string to RGBcolor for parsing, then:

myColor.r is an 8bit int of the red channel (.g for green and .b for blue)

myColor.ok is a boolean that returns true only if the colorString was successfully parsed.

myColor.hex() is a hex string of the RGB or RGBA (auto detects if alpha is present)

myColor.CIE() returns an array with CIE spaces XYZ, xyY, LAB, LCh, etc. (has provision to select any combination or all spaces)

And many many more.

Section switches are included to turn on or off only the function groups you need before minimizing. Most of the switches include a boolean to tall dependant sections if they are on or off.

Copyright © 2019-2020 by Andrew Somers. All Rights Reserved. LICENSE: GNU AGPL v3 https://www.gnu.org/licenses/ CONTACT: Please use the ISSUES tab at: https://github.com/Myndex/SeeLab/

seelab's People

Contributors

myndex avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.