toRgbaString method
As rgb with alpha channel
Implementation
String toRgbaString(double alpha)
{
if (isEmpty) {
// Empty is transparent.
return EMPTY_COLOR_CSSVALUE;
}
else {
return "rgba(" + _getColourValue(red).toString() + "," + _getColourValue(green).toString() + "," + _getColourValue(blue).toString() + "," + alpha.toString() + ")";
}
}