Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ninjinkun/p5-w3c-accessiblecolor
Determine a color pair is WCAG 2.0 valid.
https://github.com/ninjinkun/p5-w3c-accessiblecolor
Last synced: about 2 months ago
JSON representation
Determine a color pair is WCAG 2.0 valid.
- Host: GitHub
- URL: https://github.com/ninjinkun/p5-w3c-accessiblecolor
- Owner: ninjinkun
- Created: 2009-08-26T11:59:00.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2012-09-29T02:40:36.000Z (over 12 years ago)
- Last Synced: 2024-10-13T17:46:49.314Z (3 months ago)
- Language: Perl
- Homepage:
- Size: 97.7 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# W3C::AccessibleColor
Determine a color pair is WCAG 2.0 valid.# Usage
```perl
use W3C::AccessibleColor;
use Perl6::Say;my $color1 = [123, 123, 244]; # rgb
my $color2 = [12, 22, 100];say 'valid pair' if is_valid_color_pair($color1, $color2);
my ($color3, $color4) = random_color_pair(); # get color pair
# useful for CAPTCHA
```