diff --git a/flam3.c b/flam3.c index 6f35ffe..becef85 100644 --- a/flam3.c +++ b/flam3.c @@ -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); diff --git a/interpolation.c b/interpolation.c index 5651a50..c143401 100644 --- a/interpolation.c +++ b/interpolation.c @@ -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;