CMYK
class CMYK implements ColorInterface
Methods
Return the value of one of the component.
Returns Cyan value of the color (from 0 to 100).
Returns Magenta value of the color (from 0 to 100).
Returns Yellow value of the color (from 0 to 100).
Returns Key value of the color (from 0 to 100).
Returns the palette attached to the current color.
Returns percentage of transparency of the color (from 0 - fully transparent, to 100 - fully opaque).
Returns a copy of current color, incrementing the alpha channel by the given amount.
Returns a copy of the current color, lightened by the specified number of shades.
Returns a copy of the current color, darkened by the specified number of shades.
Returns a gray related to the current color.
Checks if the current color is opaque.
Returns hex representation of the color.
Details
at line 49
__construct(CMYK $palette, array $color)
at line 60
int|null
getValue(string $component)
Return the value of one of the component.
at line 81
int
getCyan()
Returns Cyan value of the color (from 0 to 100).
at line 91
int
getMagenta()
Returns Magenta value of the color (from 0 to 100).
at line 101
int
getYellow()
Returns Yellow value of the color (from 0 to 100).
at line 111
int
getKeyline()
Returns Key value of the color (from 0 to 100).
at line 121
PaletteInterface
getPalette()
Returns the palette attached to the current color.
at line 131
int|null
getAlpha()
Returns percentage of transparency of the color (from 0 - fully transparent, to 100 - fully opaque).
at line 141
ColorInterface
dissolve(int $alpha)
Returns a copy of current color, incrementing the alpha channel by the given amount.
at line 151
ColorInterface
lighten(int $shade)
Returns a copy of the current color, lightened by the specified number of shades.
at line 168
ColorInterface
darken(int $shade)
Returns a copy of the current color, darkened by the specified number of shades.
at line 185
ColorInterface
grayscale()
Returns a gray related to the current color.
at line 203
bool
isOpaque()
Checks if the current color is opaque.
at line 213
string
__toString()
Returns hex representation of the color.