Class PieChartColor
Utility class for storing colours in a library-agnostic format.
public
|
#
__construct( array|integer|string $color = NULL )
Sets the colour using |
public
|
#
setColor( array|integer|string $color )
Sets the colour, using one of the following formats: '#FFFFFF', '#fff', 'rgb(255, 255, 255)', [$r, $g, $b] or ARGB (http://en.wikipedia.org/wiki/ARGB#ARGB). |
public
integer
|
#
toInt( )
Returns the colour as an integer, in the ARGB format (http://en.wikipedia.org/wiki/ARGB#ARGB). |
public
string
|
|
public
string
|
public
mixed
|
$r |
|
|
public
mixed
|
$g |
|
|
public
mixed
|
$b |
|