2017 © Pedro Peláez
 

library palette

Library to handle colors and convert between different color spaces.

image

badcow/palette

Library to handle colors and convert between different color spaces.

  • Monday, December 1, 2014
  • by samuelwilliams
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Palette

A library to represent colors and convert between different color spaces., (*1)

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., (*2)

Usage

To use the converter:, (*3)

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:, (*4)

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!, (*5)

The Versions

01/12 2014

dev-master

9999999-dev

Library to handle colors and convert between different color spaces.

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Sam Williams