class Polygon

Base class

Methods

__construct(array $points = array(array(0, 0), array(0, 0), array(0, 0)), int $borderSize = 1, Color|string|bool $borderColor = '#000000', Color|string|bool $fillColor = '#FFFFFF')

Creates a polygon.

int
getWidth()

No description

int
getHeight()

No description

array
getPoints()

No description

int
getBorderSize()

No description

getFillColor()

No description

getBorderColor()

No description

Details

at line line 53
__construct(array $points = array(array(0, 0), array(0, 0), array(0, 0)), int $borderSize = 1, Color|string|bool $borderColor = '#000000', Color|string|bool $fillColor = '#FFFFFF')

Creates a polygon.

Parameters

array $points Array of all X and Y positions. Must have at least three positions.
int $borderSize Size of the border in pixels. Defaults to 1 pixel. Set to 0 for no border.
Color|string|bool $borderColor Border color. Defaults to black. Set to null for no color.
Color|string|bool $fillColor Fill color. Defaults to white. Set to null for no color.

at line line 70
int getWidth()

Return Value

int

at line line 78
int getHeight()

Return Value

int

at line line 86
array getPoints()

Return Value

array

at line line 94
int getBorderSize()

Return Value

int

at line line 102
Color getFillColor()

Return Value

Color

at line line 110
Color getBorderColor()

Return Value

Color