class ImageColor

Represent RGB color (0..255) with opacity (0..1).

Methods

static ImageColor
rgb(int $red, int $green, int $blue, float $opacity = 1)

No description

static ImageColor
hex(string $hex)

Accepts formats #RRGGBB, #RRGGBBAA, #RGB, #RGBA

array
toRGBA()

No description

Details

at line 20
static ImageColor rgb(int $red, int $green, int $blue, float $opacity = 1)

No description

Parameters

int $red
int $green
int $blue
float $opacity

Return Value

ImageColor

at line 29
static ImageColor hex(string $hex)

Accepts formats #RRGGBB, #RRGGBBAA, #RGB, #RGBA

Parameters

string $hex

Return Value

ImageColor

at line 66
array toRGBA()

No description

Return Value

array