class Ellipse

Base class

Methods

__construct(int $width, int $height, array $pos, int $borderSize = 1, Color|string|null $borderColor = '#000000', Color|string|null $fillColor = '#FFFFFF')

Creates an ellipse.

int
getWidth()

No description

int
getHeight()

No description

array
getPos()

No description

int
getBorderSize()

No description

getFillColor()

No description

getBorderColor()

No description

Details

at line line 57
__construct(int $width, int $height, array $pos, int $borderSize = 1, Color|string|null $borderColor = '#000000', Color|string|null $fillColor = '#FFFFFF')

Creates an ellipse.

Parameters

int $width Width of ellipse in pixels.
int $height Height of ellipse in pixels.
array $pos Array containing int X and int Y position of the ellipse from top left of the canvass.
int $borderSize Size of the border in pixels. Defaults to 1 pixel. Set to 0 for no border.
Color|string|null $borderColor Border color. Defaults to black. Set to null for no color.
Color|string|null $fillColor Fill color. Defaults to white. Set to null for no color.

at line line 82
int getWidth()

Return Value

int

at line line 90
int getHeight()

Return Value

int

at line line 98
array getPos()

Return Value

array

at line line 106
int getBorderSize()

Return Value

int

at line line 114
Color getFillColor()

Return Value

Color

at line line 122
Color getBorderColor()

Return Value

Color