interface PaletteInterface
Constants
PALETTE_GRAYSCALE |
|
PALETTE_RGB |
|
PALETTE_CMYK |
|
Methods
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. |
|
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 |
Details
at line 34
public ColorInterface
color(string|array|integer $color, integer|null $alpha = null)
Returns a color given some values
at line 45
public ColorInterface
blend(ColorInterface $color1, ColorInterface $color2, float $amount)
Blend two colors given an amount
at line 56
public PaletteInterface
useProfile(ProfileInterface $profile)
Attachs an ICC profile to this Palette.
(A default profile is provided by default)
at line 63
public ProfileInterface
profile()
Returns the ICC profile attached to this Palette.
at line 71
public String
name()
Returns the name of this Palette, one of PaletteInterface::PALETTE_* constants
at line 79
public array
pixelDefinition()
Returns an array containing ColorInterface::COLOR_* constants that define the structure of colors for a pixel.
at line 86
public Boolean
supportsAlpha()
Tells if alpha channel is supported in this palette