• Stars
    star
    10
  • Rank 1,807,489 (Top 36 %)
  • Language
    JavaScript
  • License
    GNU General Publi...
  • Created about 1 year ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Send it the background color, returns black or white whichever is maximum Lc value

More Repositories

1

SAPC-APCA

APCA (Accessible Perceptual Contrast Algorithm) is a new method for predicting contrast for use in emerging web standards (WCAG 3) for determining readability contrast. APCA is derived form the SAPC (S-LUV Advanced Predictive Color) which is an accessibility-oriented color appearance model designed for self-illuminated displays.
CSS
438
star
2

apca-w3

The APCA version, to be licensed for use with guidelines: W3/AGWG.
JavaScript
156
star
3

deltaphistar

𝜟𝜱✴︎ or Delta Phi Star is a variant method of determining lightness contrast, and a sibling of APCA and SACAM. It is a simplified version using easily invertible standardized maths, however it lacks some useful properties such as polarity sensitivity. In fact, it is intended for applications where a "general" simplifed perceptual contrast is desired, where polarity sensitivity is not needed (or is ambiguous).
HTML
22
star
4

colorparsley

A lightweight but versatile mini-lib to parse color strings, objects, or numbers, returning a simple rgba array, and related string utilities. This was developed as part of the basic APCA distro.
JavaScript
17
star
5

bridge-pca

A simplified version of the APCA math to bridge from WCAG_2 contrast math to the future, while being 100% backwards compatible with WCAG_2 contrast. By "backwards compatible" we mean if bridge-pca passes it, it will automatically pass WCAG_2 contrast.
JavaScript
13
star
6

fancyfontflipping

Fancy Font Flipping is a demo I first put up in CodePen to illustrate the issues with flipping the text color from black to white based on a given estimated background luminance.
HTML
7
star
7

seelab

sRGB parsing and processing RGB data in and out of CIE XYZ, xyY, LAB and LUV, and more!
JavaScript
7
star
8

Myndex

A catalog of Myndex Research content, including APCA articles & documentation, related code repositories, and resources.
CSS
7
star
9

seestars

See Stars is a Myndex MicroColor Library. This has standard functions for the standard (piecewise) IEC conversion of sRGB to Y, and the CIE standard Y to L* (Lstar) and back again. The math & constants here reference those of CSS 4 for compatibility.
JavaScript
6
star
10

brintness

brintness is an integer brightness/lightness/darkness calculation
3
star
11

tinytrim

A set of CSS generic classes for on-the-fly adjustment of elements without having to use style="" β€” this CSS sheet is mainly for use in development and early design stages.
CSS
2
star
12

AuralAccessibility

Aural Accessibility Research Project: A discussion area for ideas relating to guidelines for aural perception.
2
star
13

ColorGlossy

A glossary of color, contrast, and vision terms
1
star
14

Illuminated

A repo collecting the more substantial comments Myndex made regarding typography, CSS, color, contrast, and vision.
1
star
15

TuttleAndButtle

Canonical rebuttals to sponsored rumors regarding APCA, APC-RC, BridgePCA, etc.
1
star