parseColor
parseColor(color: any, alpha = 1, outputHex = false): string
This method will attempt to convert colours into their Hex or RGB equivalent . Eg "Red" will become "#FF0000"
The method accepts the following argument
Returns a Hex or RGBA string of the new colour
Last updated
Was this helpful?