if (lab) FREE(lab);
return rgb;
}
-
-void color_blend_rgbstring(char *color_list, real ratio, char **color0, int *flag){
- color_rgb rgb;
-
- if (!(*color0)){
- *color0 = malloc(sizeof(char)*7);
- }
- rgb = color_blend_rgb(color_list, ratio, flag);
- sprintf(*color0, "%02X%02X%02X", (int) (rgb.r), (int) (rgb.g), (int) (rgb.b));
-}
If *colors0 is NULL, it will be allocated. */
color_rgb color_blend_rgb(char *color_list, const real ratio, int *flag);/* blend a color list to get one color at ratio*100 percent of the list */
-void color_blend_rgbstring(char *color_list, const real ratio, char **color0, int *flag);/* blend a color list to get one color at ratio*100 percent of the list */
#endif