Myndex / 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.
https://git.apcacontrast.com/documentation/APCAeasyIntro
Other
435 stars 14 forks source link

Feature Request: an export to apca-w3 that doesn't require colorparsley #94

Open osdiab opened 1 year ago

osdiab commented 1 year ago

Is this about a tool (you're an end user) or about a code library (you're a developer)?

Yes. I already have RGBA arrays for my colors, so I don't need colorparsley in the APCA algorithm, but the library forces me to bundle it in. Would love an alternative calcAPCAFromRGBA that does the same thing but doesn't call colorparsley, so that I can avoid bundling the library when I wouldn't actually use it.

Does this relate to a problem with using a tool or implementing code? Or is this something that would help expand use and application?. it would just reduce bundle size by a few kb.

How do you think it would be best implemented? super easily, i can shoot out a PR.

Have you considered other alternatives? I was thinking about packaging my own version of apca-w3 that has all the goodies I'd like (written in typescript, a somewhat simpler API, convenience helpers) but the license on this repo is confusing to a mere web developer like myself so I'm not sure what's OK and what isn't.

Additional context

Myndex commented 1 year ago

Where we could use help:

@alexkrolick had started a pull request to get things working with Roll-up to create various builds. Unfortunately this was prior to a large number of changes. Alex is presently too busy to work on this, but it would be great to get this functioning properly.

We are getting ready to push a couple things before xmas if possible, and as we do that we'll try to get Roll-up setup...