Ellipse
Creates an ellipse.
Parameters
width
Width of ellipse in pixels.
height
Height of ellipse in pixels.
pos
Array containing int X and int Y position of the ellipse from top left of the canvass.
borderSize
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.
Examples
The following code would draw a 100x50 ellipse at 50,75:
use Grafika\Grafika;
//...
$drawingObject = Grafika::createDrawingObject('Ellipse', 100, 50, array(50, 75), 1, new Color('#000000'), new Color('#FF0000'));
$editor->draw( $image, $drawingObject ); // Draw on an image