h,
m,
r,
- x,
- z;
+ x;
/*
Convert HCL to RGB colorspace.
b=x;
}
m=luma-(0.298839f*r+0.586811f*g+0.114350f*b);
- /*
- Choose saturation strategy to clip it into the RGB cube; hue and luma are
- preserved and chroma may be changed.
- */
- z=1.0;
- if (m < 0.0)
- {
- z=luma/(luma-m);
- m=0.0;
- }
- else
- if (m+c > 1.0)
- {
- z=(1.0-luma)/(m+c-luma);
- m=1.0-z*c;
- }
- *red=QuantumRange*(z*r+m);
- *green=QuantumRange*(z*g+m);
- *blue=QuantumRange*(z*b+m);
+ *red=QuantumRange*(r+m);
+ *green=QuantumRange*(g+m);
+ *blue=QuantumRange*(b+m);
}
static void CompositeHCL(const MagickRealType red,const MagickRealType green,