summaryrefslogtreecommitdiff
path: root/flam3.c
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2015-02-17 15:39:02 +0100
committerLars-Dominik Braun <lars@6xq.net>2015-05-02 21:36:45 +0200
commit44e06d1777ae383603da4aec7d80844ca7391ff2 (patch)
treee1b12e86ef422d6070eb1fa01c06daba7f0168e5 /flam3.c
parent6123a81aecc4e3cd6c47c908fb7e9010d3d64798 (diff)
downloadpucket-44e06d1777ae383603da4aec7d80844ca7391ff2.tar.gz
pucket-44e06d1777ae383603da4aec7d80844ca7391ff2.tar.bz2
pucket-44e06d1777ae383603da4aec7d80844ca7391ff2.zip
Factor out palette interpolation
Diffstat (limited to 'flam3.c')
-rw-r--r--flam3.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/flam3.c b/flam3.c
index 694868f..74a0c59 100644
--- a/flam3.c
+++ b/flam3.c
@@ -1074,7 +1074,7 @@ void clear_cp(flam3_genome *cp, int default_flag) {
cp->temporal_filter_type = flam3_temporal_box;
cp->temporal_filter_width = 1.0;
cp->temporal_filter_exp = 0.0;
- cp->palette_mode = flam3_palette_mode_step;
+ cp->palette_mode = PALETTE_MODE_STEP;
} else {
/* Defaults are off, so set to UN-reasonable values. */
@@ -1467,9 +1467,9 @@ void flam3_print(FILE *f, flam3_genome *cp, char *extra_attributes, int print_ed
fprintf(f, " vibrancy=\"%g\"", cp->vibrancy);
fprintf(f, " gamma_threshold=\"%g\"", cp->gam_lin_thresh);
- if (flam3_palette_mode_step == cp->palette_mode)
+ if (PALETTE_MODE_STEP == cp->palette_mode)
fprintf(f, " palette_mode=\"step\"");
- else if (flam3_palette_mode_linear == cp->palette_mode)
+ else if (PALETTE_MODE_LINEAR == cp->palette_mode)
fprintf(f, " palette_mode=\"linear\"");
if (flam3_interpolation_linear != cp->interpolation)