Search results

9 packages found

A general-purpose color library for JavaScript

published version 4.0.1, 10 months ago91 dependents licensed under $MIT
1,112,619

Determines the best contrast color to use. Give it a background color and it returns a foreground color (black or white by default but customizable).

published version 1.0.1, 4 years ago7 dependents licensed under $ISC
28,300

Converts hex color to rgb and calculates appropriate corresponding foreground.

published version 2.2.0, 10 years ago2 dependents
2,439

Returns light when a color is dark and dark when a color is light (and a little more).

published version 4.0.0, 4 years ago2 dependents licensed under $MIT
3,368

Color utilities for Node.js

published version 0.14.0-alpha, 2 years ago0 dependents licensed under $GPL-3.0-or-later
207

Determine if a color in RGB format is dark using YIQ calculation

published version 2.1.2, 6 months ago1 dependents licensed under $MIT
158

Function to calculate the YIQ value of a color in RGB format

published version 2.1.2, 6 months ago1 dependents licensed under $MIT
172

Returns whether the given rgb color array has a YIQ brightness value of less than 128 (50% brightness).

published version 1.0.1, 3 months ago0 dependents licensed under $MIT
19

functions which help to work with RGB, HEX, YIQ, HSV colours

published version 1.0.2, 8 years ago0 dependents licensed under $ISC
2