Метод |
Описание |
|
arcPoints ( integer $r, integer $start, integer $end ) : array |
Returns point coordinates at the limits of an arc. |
|
brightness ( string $color ) : integer |
Returns the brightness of a color. |
|
circlePoint ( float $degrees, integer $diameter ) : array |
Returns an x,y pair on circle, assuming center is 0,0. |
|
getColor ( string $color ) : integer[] |
Normalizes an HTML color. |
|
getFontSize ( $fontsize ) |
Returns the point size for an HTML font size name. |
|
getHexColor ( string $colorname ) : string |
Returns the hexadecimal representation of an HTML color name. |
|
getRGB ( string $colorname ) : array |
Returns the RGB values for an HTML color name. |
|
grayscalePixel ( integer[] $originalPixel ) : integer[] |
Turns an RGB value into grayscale. |
|
grayscaleValue ( integer $r, integer $g, integer $b ) : integer |
Calculates the grayscale value of a color. |
|
modifyColor ( string $color, integer $factor = 17 ) : string |
Calculates a lighter (or darker) version of a color. |
|
moreIntenseColor ( string $color, integer $factor = 17 ) : string |
Calculates a more intense version of a color. |
|