From 44e06d1777ae383603da4aec7d80844ca7391ff2 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Tue, 17 Feb 2015 15:39:02 +0100 Subject: Factor out palette interpolation --- flam3.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'flam3.h') diff --git a/flam3.h b/flam3.h index 2434a78..de2ad07 100644 --- a/flam3.h +++ b/flam3.h @@ -73,8 +73,10 @@ extern char *flam3_variation_names[]; #define flam3_max_action_length 10000 -#define flam3_palette_mode_step 0 -#define flam3_palette_mode_linear 1 +typedef enum { + PALETTE_MODE_STEP = 0, + PALETTE_MODE_LINEAR = 1, +} color_palette_mode; #define VAR_LINEAR 0 #define VAR_SINUSOIDAL 1 -- cgit v1.2.3