davidvandertuijn/color-contrast
最新稳定版本:1.1
Composer 安装命令:
composer require davidvandertuijn/color-contrast
包简介
Color Contrast
README 文档
README
The Luminosity Contrast Algorithm is a powerful tool designed to assess the contrast of a color value relative to pure white (#FFFFFF) and pure black (#000000). This algorithm is essential for ensuring that text and visual elements are easily readable against their backgrounds, thereby enhancing accessibility and user experience.
Install
composer require davidvandertuijn/color-contrast
Usage
use Davidvandertuijn\ColorContrast;
Parse
ColorContrast::parse('#FF0000'); // #FFFFFF (red to white) ColorContrast::parse('#FFFF00'); // #000000 (yellow to black)
统计信息
- 总下载量: 343
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-06-01