rem: if (x>255)
add: if (x > (SPECTRUM_WIDTH/2))
context: customRenderSpectrum(W_ColorPanel *panel){    RImage		*spectrum;    int			x,y;    unsigned long	ofs;    unsigned char	*rp, *gp, *bp;    CPColor		cpColor;        spectrum = RCreateImage(SPECTRUM_WIDTH, SPECTRUM_HEIGHT, 0);        for (y=0; y<360; y++) {	cpColor.hsv.hue = y;	cpColor.hsv.saturation = 0;	cpColor.hsv.value = 255;	cpColor.set = cpHSV;	for (x=0; x<511; x++) {	    ofs = (y * 511) + x;	    	    convertCPColor(&cpColor);	    	    rp = spectrum->data + ofs;	    gp = spectrum->data + ofs + 1;	    bp = spectrum->data + ofs + 2;	    	    *rp = (unsigned char)cpColor.rgb.red;	    *gp = (unsigned char)cpColor.rgb.green;	    *bp = (unsigned char)cpColor.rgb.blue;	    	    if (x<255)		cpColor.hsv.saturation++;	    	    if (x>255)		cpColor.hsv.value--;	}    }    if (panel->customPaletteImg)	{	RDestroyImage(panel->customPaletteImg);	panel->customPaletteImg = NULL;    }    panel->customPaletteImg = spectrum;}