ColorParser
in package
Table of Contents
Methods
- parseToCMYK() : array<string|int, mixed>
- Parses a color to a CMYK tuple.
- parseToGrayscale() : array<string|int, int>
- Parses a color to a grayscale value.
- parseToRGB() : array<string|int, mixed>
- Parses a color to a RGB tuple.
- parse() : array<string|int, int>
- Parses a color.
Methods
parseToCMYK()
Parses a color to a CMYK tuple.
public
parseToCMYK(string|array<string|int, mixed>|int $color) : array<string|int, mixed>
Parameters
- $color : string|array<string|int, mixed>|int
Tags
Return values
array<string|int, mixed>parseToGrayscale()
Parses a color to a grayscale value.
public
parseToGrayscale(string|array<string|int, mixed>|int $color) : array<string|int, int>
Parameters
- $color : string|array<string|int, mixed>|int
Tags
Return values
array<string|int, int>parseToRGB()
Parses a color to a RGB tuple.
public
parseToRGB(string|array<string|int, mixed>|int $color) : array<string|int, mixed>
Parameters
- $color : string|array<string|int, mixed>|int
Tags
Return values
array<string|int, mixed>parse()
Parses a color.
private
parse(string|array<string|int, mixed>|int $color) : array<string|int, int>
Parameters
- $color : string|array<string|int, mixed>|int