toRgb method
Returns new ColorTriplet, converted from linear RGB to sRGB.
After conversion the color components will be between 0, 255
.
Implementation
ColorTriplet toRgb() {
return ColorTriplet(
linearTosRgb(r).toDouble(),
linearTosRgb(g).toDouble(),
linearTosRgb(b).toDouble(),
);
}