a11y-color
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -116,3 +116,3 @@ "use strict"; | ||
/** | ||
* Combine the two given color according to alpha blending. | ||
* Combine the two given colors according to alpha blending. | ||
* | ||
@@ -119,0 +119,0 @@ * @param {Color} fgColor - the foreground color. |
@@ -136,3 +136,3 @@ "use strict"; | ||
/** | ||
* Combine the two given color according to alpha blending. | ||
* Combine the two given colors according to alpha blending. | ||
* | ||
@@ -139,0 +139,0 @@ * @param {Color} fgColor - the foreground color. |
{ | ||
"name": "a11y-color", | ||
"description": "", | ||
"version": "0.0.5", | ||
"description": "Color evaluation and manipulation tools", | ||
"version": "0.0.6", | ||
"author": "Jesse Beach <jesse.r.beach@gmail.com>", | ||
@@ -6,0 +6,0 @@ "license": "Apache License 2.0", |
# Accessibility Color Tools (a11y-color) | ||
## Utilities | ||
### Color Parsing | ||
`parseColor`: Parses a color string in rgb or rgba format into a Color object. | ||
### Color suggestions for specific contrast ratios | ||
`suggestedColors`: Suggests alternative color suggestions to meet a given contrast ratio. | ||
### Contrast ratio calculation | ||
`calculateContrastRatio`: Calculate the contrast ratio between the two given colors. | ||
Returns the ratio to 1, for example for two two colors with a contrast ratio of 21:1, this | ||
function will return 21. | ||
### Flatten colors | ||
`flattenColors`: Combine the two given colors according to alpha blending. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
110498
23