toRGB property
Convert this to a RGBA color space
Implementation
@override
RGBAColor get toRGB {
final chroma = (1.0 - (2.0 * lightness - 1.0).abs()) * saturation;
final secondary = chroma * (1.0 - (((hue / 60.0) % 2.0) - 1.0).abs());
final match = lightness - chroma / 2.0;
return rgbaColorFromHue(alpha, hue, chroma, secondary, match);
}