Qix- / color
:rainbow: Javascript color conversion and manipulation library
AI Architecture Analysis
This repository is indexed by RepoMind. By analyzing Qix-/color in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.
Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context on-demand, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.
Repository Overview (README excerpt)
Crawler viewcolor > JavaScript library for immutable color conversion and manipulation with support for CSS color strings. Install Usage Constructors Set the values for individual channels with , , , , , (hsl), (hsv), , , , , , , String constructors are handled by color-string Getters Convert a color to a different space ( , , etc.). Get a hash of the color value. Reflects the color's current model (see above). Get an array of the values with . Reflects the color's current model (see above). Get the rgb number value. Get the hex value. (**NOTE:** does not return alpha values; use for an RGBA representation) Get the value for an individual channel. CSS Strings Calling with a number rounds the numbers to that decimal place. It defaults to 1. Luminosity The WCAG luminosity of the color. 0 is black, 1 is white. The WCAG contrast ratio to another color, from 1 (same color) to 21 (contrast b/w white and black). Get whether the color is "light" or "dark", useful for deciding text color. Manipulation Propers The API was inspired by color-js. Manipulation functions by CSS tools like Sass, LESS, and Stylus.