PHP code example of jpuck / color-mixer

1. Go to this page and download the library: Download jpuck/color-mixer library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

jpuck / color-mixer example snippets


use jpuck\ColorMixer\Mixer;

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

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