> For the complete documentation index, see [llms.txt](https://learn.squirrel365.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://learn.squirrel365.io/squirrel-addon-documentation/squirrel-helper-library/angular/methods/parsecolor.md).

# parseColor

This method will attempt to convert colours into their Hex or RGB equivalent .   Eg  "Red" will become "#FF0000"

The method accepts the following argument

<details>

<summary>color: string</summary>

The verbose color or  Hex or RGB

</details>

<details>

<summary>alpha: number (defaults to 1)</summary>

The alpha value for the color

</details>

<details>

<summary>outputHex: boolean (defaults to false)</summary>

Do you want the return to be Hex (true)   or RGBA (false)

</details>

Returns a Hex or RGBA string of the new colour
