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

NPM module #34

Closed felixgirault closed 2 years ago

felixgirault commented 2 years ago

Hi, Do you have any plans to release this code as a commonjs or es6 module ? For now, it is impossible to use APCAcontrast() inside nodejs or using a web bundler. I'd be glad to help if there is a need!

Thank you for your work anyways :)

Myndex commented 2 years ago

Hi, Do you have any plans to release this code as a commonjs or es6 module ? For now, it is impossible to use APCAcontrast() inside nodejs or using a web bundler. I'd be glad to help if there is a need!

Yes, the exports were accidentally commented out, will have these issues fixed tonight (I hope) sorry for the issueS!!

And happy to accept comments or advice because...

5xcebp

LOL

Thank you

Andy

felixgirault commented 2 years ago

😄 No problem, there is no rush! I could propose some changes to make the module more usable, but it may be a pain for you to manage if you're not fond of the JS ecosystem 🤔

Myndex commented 2 years ago

😄 No problem, there is no rush! I could propose some changes to make the module more usable, but it may be a pain for you to manage if you're not fond of the JS ecosystem 🤔

I welcome the suggestions, as JS is "Lang du Jour" ... I just published the latest which should fix the module export issue...

felixgirault commented 2 years ago

I just found out about the dedicated w3 repository! I was going to propose something in the vein of this pull request https://github.com/Myndex/apca-w3/pull/1 I'm closing this issue as the discussion could continue there.