todstoychev/websafe-colors
Composer 安装命令:
composer require todstoychev/websafe-colors
包简介
Web safe colors generator
README 文档
README
This is a very simple composer package used to generate array with websafe color codes. It can generate both RGB and HEX codes.
Installation
Simply use the usual composer way:
composer require todstoychev/websafe-colors
or add to your composer.json in the 'require' section:
"require": { "todstoychev/websafe-colors": "dev-master" }
and run
composer update
Usage
The package contains only one class. You will need only the Wsc::getColors() method. This method accepts only one argument which defines the type of the produced codes. Default is false and the result is array with the hex formated codes. If you want to get RGB values use true as argument. The result in this case will be:
[
['r' => 0, 'g' => 0, 'b' => 0],
['r' => 0, 'g' => 51, 'b' => 0],
['r' => 0, 'g' => 0, 'b' => 51],
...
]
统计信息
- 总下载量: 723
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-03-25