Property | Type | Description | |
---|---|---|---|
$backgroundColor | array | ||
$color | array | ||
$generatedImage | mixed | ||
$pixelRatio | integer | ||
$size | integer |
Method | Description | |
---|---|---|
getArrayOfSquare ( ) : array | ||
getBackgroundColor ( ) : array | Get the background color. | |
getColor ( ) : array | Get the color. | |
getHash ( ) : string | Get the identicon string hash. | |
getPixelRatio ( ) : integer | Get the pixel ratio. | |
getSize ( ) : integer | Get the image size. | |
setBackgroundColor ( string | array $backgroundColor ) | Set the image background color. | |
setColor ( string | array $color ) | Set the image color. | |
setSize ( integer $size ) | Set the image size. | |
setString ( string $string ) | Generate a hash from the original string. |
Method | Description | |
---|---|---|
convertColor ( array | string $color ) : array | ||
convertHashToArrayOfBoolean ( ) | Convert the hash into an multidimensional array of boolean. | |
convertHexaToBoolean ( string $hexa ) : boolean | Convert an hexadecimal number into a boolean. |
public getBackgroundColor ( ) : array | ||
return | array |
public getPixelRatio ( ) : integer | ||
return | integer |
public setBackgroundColor ( string | array $backgroundColor ) | ||
$backgroundColor | string | array | The color in hexa (3 or 6 chars) or rgb array |