Skip to content

A flexible class for parsing/storing color values

License

Notifications You must be signed in to change notification settings

SeinopSys/RGBAColor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RGBAColor Class Build Status

A flexible class for parsing/storing color values

Installation

composer require seinopsys/rgbacolor:1.*

Usage

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();