PHP code example of seinopsys / rgbacolor
1. Go to this page and download the library: Download seinopsys/rgbacolor 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/ */
seinopsys / rgbacolor example snippets
use SeinopSys\RGBAColor;
$red = RGBAColor::parse('#f00');
$green = new RGBAColor(0, 255, 0);
$transparentBlue = new RGBAColor(0, 0, 255, .5);
$purple = (string)$green->invert();
$black = $red->setRed(0)->toHex();