PColorRGB.fromHSV constructor
Implementation
factory PColorRGB.fromHSV(double h, double s, double v, {double? alpha}) {
var rgb = hsvToRGB(h, s, v);
if (alpha != null && alpha != 1.0) {
return PColorRGBA(rgb.r, rgb.g, rgb.b, alpha);
} else {
return PColorRGB(rgb.r, rgb.g, rgb.b);
}
}