Inherited by bodyColorContrast, bodyWaiErtColorContrast, and cssTextHasContrast.
Public Member Functions | |
| getLuminosity ($foreground, $background) | |
| luminosity ($r, $r2, $g, $g2, $b, $b2) | |
| getRGB ($color) | |
| convertColor ($color) | |
| getWaiErtContrast ($foreground, $background) | |
| getWaiErtBrightness ($foreground, $background) | |
Definition at line 623 of file test.php.
| quailColorTest::convertColor | ( | $ | color | ) |
| quailColorTest::getLuminosity | ( | $ | foreground, | |
| $ | background | |||
| ) |
Helper method that finds the luminosity between the provided foreground and background parameters.
| string | $foreground The HEX value of the foreground color | |
| string | $background The HEX value of the background color |
Definition at line 775 of file test.php.
References getRGB(), and luminosity().
Referenced by bodyColorContrast::check(), and cssTextHasContrast::check().
| quailColorTest::getRGB | ( | $ | color | ) |
Returns the decimal equivalents for a HEX color
| string | $color The hex color value |
Definition at line 827 of file test.php.
References convertColor().
Referenced by getLuminosity(), getWaiErtBrightness(), and getWaiErtContrast().
| quailColorTest::getWaiErtBrightness | ( | $ | foreground, | |
| $ | background | |||
| ) |
Returns the WAI ERT Brightness between two colors
Definition at line 906 of file test.php.
References getRGB().
Referenced by bodyWaiErtColorContrast::check().
| quailColorTest::getWaiErtContrast | ( | $ | foreground, | |
| $ | background | |||
| ) |
Returns the WAIERT contrast between two colors
Definition at line 894 of file test.php.
References getRGB().
Referenced by bodyWaiErtColorContrast::check().
| quailColorTest::luminosity | ( | $ | r, | |
| $ | r2, | |||
| $ | g, | |||
| $ | g2, | |||
| $ | b, | |||
| $ | b2 | |||
| ) |
Returns the luminosity between two colors
| string | $r The first Red value | |
| string | $r2 The second Red value | |
| string | $g The first Green value | |
| string | $g2 The second Green value | |
| string | $b The first Blue value | |
| string | $b2 The second Blue value |
Definition at line 794 of file test.php.
Referenced by getLuminosity().
1.5.7.1