From 402c18fa5c8de3b73abe63e67e460103acd8c87e Mon Sep 17 00:00:00 2001 From: EReckase Date: Sun, 12 Apr 2015 08:25:21 -0600 Subject: [PATCH] ghostly missed fixes... --- flam3.c | 4 ++-- interpolation.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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;