class CMYK implements PaletteInterface
Methods
__construct()
|
||
String |
name()
Returns the name of this Palette, one of PaletteInterface::PALETTE_* constants |
|
array |
pixelDefinition()
Returns an array containing ColorInterface::COLOR_* constants that define the structure of colors for a pixel. |
|
Boolean |
supportsAlpha()
Tells if alpha channel is supported in this palette |
|
ColorInterface |
color(string|array|integer $color, integer|null $alpha = null)
Returns a color given some values |
|
ColorInterface |
blend(ColorInterface $color1, ColorInterface $color2, float $amount)
Blend two colors given an amount |
|
PaletteInterface |
useProfile(ProfileInterface $profile)
Attachs an ICC profile to this Palette. |
|
ProfileInterface |
profile()
Returns the ICC profile attached to this Palette. |
Details
at line 27
public
__construct()
at line 35
public String
name()
Returns the name of this Palette, one of PaletteInterface::PALETTE_* constants
at line 43
public array
pixelDefinition()
Returns an array containing ColorInterface::COLOR_* constants that define the structure of colors for a pixel.
at line 56
public Boolean
supportsAlpha()
Tells if alpha channel is supported in this palette
at line 64
public ColorInterface
color(string|array|integer $color, integer|null $alpha = null)
Returns a color given some values
at line 83
public ColorInterface
blend(ColorInterface $color1, ColorInterface $color2, float $amount)
Blend two colors given an amount
at line 100
public PaletteInterface
useProfile(ProfileInterface $profile)
Attachs an ICC profile to this Palette.
(A default profile is provided by default)
at line 110
public ProfileInterface
profile()
Returns the ICC profile attached to this Palette.