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