jpuck / color-mixer
Mix CSS colors like paint.
Installs: 673
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 3
Open Issues: 0
pkg:composer/jpuck/color-mixer
Requires
- php: ^7.0
Requires (Dev)
- phpunit/phpunit: ^5.7
This package is not auto-updated.
Last update: 2025-09-28 02:20:44 UTC
README
Mix CSS colors like paint.
Supports the CSS color keywords up to Color Module Level 4 and
hexadecimal values with or without a leading hash #
See example.php
for some basic usage mixing 5 colors.
The background color and the 6th panel are the mix of the given colors.
use jpuck\ColorMixer\Mixer; $colors = [ 'rebeccapurple', '#33Ab42', '000000', '#00f', 'red', ]; $mix = ( new Mixer(...$colors) )->mix()->hex();
Installation
Requires PHP 7
Registered on packagist for easy installation using composer.
composer require jpuck/color-mixer
Branch | Status |
---|---|
master |