refine fix a bit
public partial class painting_ {
internal static float _getHue(float red, float green, float blue, float max, float delta) {
float hue = 0;
if (delta == 0.0f) {
if (max == 0.0f || delta == 0.0f) {
hue = 0.0f;
}
else if (max == red) {