定制 todstoychev/websafe-colors 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-03-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固