2017 © Pedro Peláez
 

library color-mixer

Mix CSS colors like paint.

image

jpuck/color-mixer

Mix CSS colors like paint.

  • Wednesday, February 8, 2017
  • by jpuck
  • Repository
  • 1 Watchers
  • 3 Stars
  • 14 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

PHP Color Mixer

Mix CSS colors like paint., (*1)

Supports the [CSS color keywords up to Color Module Level 4][13] and hexadecimal values with or without a leading hash #, (*2)

See example.php for some basic usage mixing 5 colors. The background color and the 6th panel are the mix of the given colors., (*3)

use jpuck\ColorMixer\Mixer;

$colors = [
    'rebeccapurple',
    '#33Ab42',
    '000000',
    '#00f',
    'red',
];

$mix = ( new Mixer(...$colors) )->mix()->hex();

![color output from example.php][14], (*4)

Installation

Requires PHP 7, (*5)

Registered on packagist for easy installation using composer., (*6)

composer require jpuck/color-mixer
Branch Status
master Build Status Codecov

License Total Downloads Latest Stable Version, (*7)

The Versions

08/02 2017

dev-master

9999999-dev

Mix CSS colors like paint.

  Sources   Download

GPL-3.0+

The Requires

  • php ^7.0

 

The Development Requires

by Jeff Puckett

30/01 2017

1.0.2

1.0.2.0

Mix CSS colors like paint.

  Sources   Download

GPL-3.0+

The Requires

  • php ^7.0

 

The Development Requires

by Jeff Puckett

16/01 2017

1.0.1

1.0.1.0

Mix CSS colors like paint.

  Sources   Download

GPL-3.0+

The Requires

  • php ^7.0

 

The Development Requires

by Jeff Puckett

15/01 2017

1.0.0

1.0.0.0

Mix CSS colors like paint.

  Sources   Download

GPL-3.0+

The Requires

  • php ^7.0

 

The Development Requires

by Jeff Puckett