rem: val--;
add: cpColor.hsv.value--;
context: customRenderSpectrum(W_ColorPanel *panel){    RImage		*spectrum;    int			hue, sat, val;    int			x,y;    unsigned long	ofs;    unsigned char	*rp, *gp, *bp;    RColor		color;    RHSVColor		cur_hsv;        spectrum = RCreateImage(SPECTRUM_WIDTH, SPECTRUM_HEIGHT, 0);        for (y=0; y<360; y++) {	val = 255;	sat = 0;	hue = y;	for (x=0; x<511; x++) {	    ofs = (y * 511) + x;	    	    cur_hsv.hue = hue;	    cur_hsv.saturation = sat;	    cur_hsv.value = val;	    	    RHSVtoRGB (&cur_hsv, &color);	    	    rp = spectrum->data[0] + ofs;	    gp = spectrum->data[1] + ofs;	    bp = spectrum->data[2] + ofs;	    	    *rp = (unsigned char)color.red;	    *gp = (unsigned char)color.green;	    *bp = (unsigned char)color.blue;	    	    if (x<255)		sat++;	    	    if (x>255)		val--;	}    }    if (panel->customPaletteImg)	{	RDestroyImage(panel->customPaletteImg);	panel->customPaletteImg = NULL;    }    panel->customPaletteImg = spectrum;}