ModelInterface
interface ModelInterface
Methods
static ModelInterface
create(string $values)
Creating instance model
array
getChannelsList()
No description
array
getTypesList()
No description
void
syncAlpha(string|float $alpha)
No description
boolean
isType(string $type)
No description
boolean
isChannel(string $channel)
No description
string|stdClass
convertToRgb(bool $withAlpha = false, bool $toString = false)
Convert instance values to RGB
void
convertFromRgb(string|array $rgb)
Convert instance values from RGB
void
setChannel(string $channel, string|integer|float $value)
Set single channel
float|integer|string
getChannel(string $channel)
Get single channel
void
set(string|array $value)
Set all model channels
Details
at line 17
static ModelInterface
create(string $values)
Creating instance model
at line 23
array
getChannelsList()
at line 29
array
getTypesList()
at line 37
void
syncAlpha(string|float $alpha)
at line 45
boolean
isType(string $type)
at line 53
boolean
isChannel(string $channel)
at line 64
string|stdClass
convertToRgb(bool $withAlpha = false, bool $toString = false)
Convert instance values to RGB
at line 74
void
convertFromRgb(string|array $rgb)
Convert instance values from RGB
at line 85
void
setChannel(string $channel, string|integer|float $value)
Set single channel
at line 95
float|integer|string
getChannel(string $channel)
Get single channel
at line 105
void
set(string|array $value)
Set all model channels
at line 116
string|stdClass
get(bool $withAlpha = false, bool $toString = false)
Get all model channels