RGB
class RGB implements PaletteInterface
The RGB palette.
Properties
static protected RGB[] | $colors |
Methods
No description
Returns the name of this Palette, one of PaletteInterface::PALETTE_ constants.
Returns an array containing ColorInterface::COLOR_* constants that define the structure of colors for a pixel.
Tells if alpha channel is supported in this palette.
Get the max value of palette components (255 for RGB and Grayscale, 100 for CMYK).
Returns the ICC profile attached to this Palette.
Returns a color given some values.
Blend two colors given an amount.
Details
at line 40
__construct()
at line 50
string
name()
Returns the name of this Palette, one of PaletteInterface::PALETTE_ constants.
at line 60
string[]
pixelDefinition()
Returns an array containing ColorInterface::COLOR_* constants that define the structure of colors for a pixel.
at line 74
bool
supportsAlpha()
Tells if alpha channel is supported in this palette.
at line 84
int
getChannelsMaxValue()
Get the max value of palette components (255 for RGB and Grayscale, 100 for CMYK).
at line 94
$this
useProfile(ProfileInterface $profile)
Attachs an ICC profile to this Palette.
(A default profile is provided by default)
at line 106
ProfileInterface
profile()
Returns the ICC profile attached to this Palette.
at line 120
ColorInterface
color(string|int[]|int $color, int|null $alpha = null)
Returns a color given some values.
at line 141
ColorInterface
blend(ColorInterface $color1, ColorInterface $color2, float $amount)
Blend two colors given an amount.