toString method
Output color as string in rgba(r, g, b, a) or rgb(r, g, b) format
Implementation
String toString([template = null]) => alpha == null
? (template == null ? toRgbString() : toRgbString(template))
: (template == null ? toRgbaString() : toRgbaString(template));