public __construct ( integer $width, integer $height, array $pos, integer $borderSize = 1, |
||
$width | integer | Width of ellipse in pixels. |
$height | integer | Height of ellipse in pixels. |
$pos | array | Array containing int X and int Y position of the ellipse from top left of the canvass. |
$borderSize | integer | Size of the border in pixels. Defaults to 1 pixel. Set to 0 for no border. |
$borderColor | Border color. Defaults to black. Set to null for no color. | |
$fillColor | Fill color. Defaults to white. Set to null for no color. |
public function __construct($width, $height, array $pos, $borderSize = 1, $borderColor = '#000000', $fillColor = '#FFFFFF')
{
if (is_string($borderColor)) {
$borderColor = new Color($borderColor);
}
if (is_string($fillColor)) {
$fillColor = new Color($fillColor);
}
$this->width = $width;
$this->height = $height;
$this->pos = $pos;
$this->borderSize = $borderSize;
$this->borderColor = $borderColor;
$this->fillColor = $fillColor;
}