ghostly missed fixes...

This commit is contained in:
EReckase 2015-04-12 08:25:21 -06:00
parent 4242535339
commit 402c18fa5c
2 changed files with 3 additions and 3 deletions

View File

@ -1785,8 +1785,8 @@ void flam3_print(FILE *f, flam3_genome *cp, char *extra_attributes, int print_ed
fprintf(f, " palette_interpolation=\"sweep\"");
else if (flam3_palette_interpolation_rgb == cp->palette_interpolation)
fprintf(f, " palette_interpolation=\"rgb\"");
else if (flam3_palette_interpolation_hsv2 == cp->palette_interpolation)
fprintf(f, " palette_interpolation=\"hsv2\"");
else if (flam3_palette_interpolation_hsv_circular == cp->palette_interpolation)
fprintf(f, " palette_interpolation=\"hsv_circular\"");
if (extra_attributes)
fprintf(f, " %s", extra_attributes);

View File

@ -178,7 +178,7 @@ void interpolate_cmap(flam3_palette cmap, double blend,
/* Correct the first hue to go the short way around */
if ((s[0] - t[0]) > 3.0) /* first hue much bigger than second hue */
s[0] -= 6.0
s[0] -= 6.0;
if ((s[0] - t[0]) < -3.0) /* first hue much smaller than second hue */
s[0] += 6.0;