承接 badcow/palette 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

badcow/palette

Composer 安装命令:

composer require badcow/palette

包简介

Library to handle colors and convert between different color spaces.

README 文档

README

A library to represent colors and convert between different color spaces.

The library currently comprises of two classes: the Converter class, which converts colors from one space to another, and the Color class, which is an immutable object representation of a color.

Usage

To use the converter:

use Badcow\Palette\Converter;

$cmyk = Converter::rgbToCmyk([42, 53, 122, 0.3]); \\ array(65.6, 56.6, 0, 52.2)

To use the color class:

use Badcow\Palette\Color;

$sky_blue = new Color([43, 12, 0, 8], Color::CMYK);
print_r($sky_blue->rgb());

Warning!

This is still a work in progress. Be careful if you want to send it live!

统计信息

  • 总下载量: 6
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-11-30