- Classes
- Namespaces
- Interfaces
- Traits
- Index

Class

# Imagine\Image\Palette\ColorParser

class ColorParser

## Methods

array | parseToRGB(string|array|integer $color) Parses a color to a RGB tuple |
array | parseToCMYK(string|array|integer $color) Parses a color to a CMYK tuple |
array | parseToGrayscale(string|array|integer $color) Parses a color to a grayscale value |

## Details

###
at line 27
`public array parseToRGB(string|array|integer $color)`

Parses a color to a RGB tuple

#### Parameters

string|array|integer | $color |

#### Return Value

array |

#### Exceptions

InvalidArgumentException |

###
at line 51
`public array parseToCMYK(string|array|integer $color)`

Parses a color to a CMYK tuple

#### Parameters

string|array|integer | $color |

#### Return Value

array |

#### Exceptions

InvalidArgumentException |

###
at line 82
`public array parseToGrayscale(string|array|integer $color)`

Parses a color to a grayscale value

#### Parameters

string|array|integer | $color |

#### Return Value

array |

#### Exceptions

InvalidArgumentException |