static RGB fixRGB(RGB rgb) { ret rgb == null ? null : RGB(limitBetween0and1(rgb.r), limitBetween0and1(rgb.g), limitBetween0and1(rgb.b)); }