定制 esmero/lipstick 二次开发

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

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

esmero/lipstick

Composer 安装命令:

composer require esmero/lipstick

包简介

Simplistic Color and Color Space PHP classes named after a pretty Pink Flowering Strawberry

README 文档

README

Color and Color Space PHP classes named after a pretty Pink Flowering Strawberry

How to install

composer require esmero/lipstick:dev-main

Basic usage

<?PHP

require 'vendor/autoload.php';

use \Esmero\Lipstick\Color;

$prettycolor = new Color('#5588CC');
print_r($prettycolor->getRgb());
print_r($prettycolor->getXyz());
print_r($prettycolor->getCielab());
print_r($prettycolor->getCam16());

Output will be

Array
(
    [R] => 85
    [G] => 136
    [B] => 204
)
Array
(
    [X] => 0.23446234045762
    [Y] => 0.23897966766939
    [Z] => 0.60496347657347
)
Array
(
    [L] => 55.985491376125
    [a] => 312.9593458713
    [b] => 123.29081923678
)
Array
(
    [J] => 45.54426472036
    [C] => 45.070010482938
    [h] => 259.22534529813
    [Q] => 132.96974182692
    [M] => 39.41306078701
    [s] => 54.443203141326
)

Acknowledgments

This (WIP) Library uses Matrices & Math & ways translated from https://observablehq.com/@jrus/cam16 authored by https://github.com/jrus. Many thanks.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-2.0
  • 更新时间: 2026-01-09