mirror of
https://github.com/scottdraves/flam3.git
synced 2025-01-21 05:20:05 -05:00
ghostly missed fixes...
This commit is contained in:
parent
4242535339
commit
402c18fa5c
4
flam3.c
4
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);
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user