1. Go to this page and download the library: Download malenki/alpha-background 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/ */
malenki / alpha-background example snippets
php
$rgba = new AlphaBackground();
$rgba->red(255);
$rgba->green(150);
$rgba->blue(42);
$rgba->alpha(0.8);
$rgba->display();
php
$rgba = new AlphaBackground();
$rgba->red(255)->green(150)->blue(42)->alpha(0.8)->display();
php
$rgba = new AlphaBackground();
$rgba->hex('#ff962acc')->display();
php
$rgba = new AlphaBackground();
$rgba->hex('#ff962a')->alpha(0.8)->display();
php
$rgba = new AlphaBackground();
$rgba->name('orange')->alpha(0.7)->display();
php
$rgba = new AlphaBackground();
$rgba->name('orange')->alpha(0.7)->save('some_file.png');