From 7500d3b40ebd24f32d8ae226aed65fabc28c7e8d Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sun, 24 May 2015 17:32:48 +0200 Subject: Add improvecolors command Also fixes try_colors, which used an integer division *before* casting the result to double. --- flam3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'flam3.c') diff --git a/flam3.c b/flam3.c index b0caaf7..0a6f59b 100644 --- a/flam3.c +++ b/flam3.c @@ -1736,11 +1736,11 @@ void flam3_mutate(flam3_genome *cp, int mutate_mode, int *ivars, int ivars_n, in if (s < 0.4) { /* randomize xform color coords */ - flam3_improve_colors(cp, 100, 0, 10, pc, rc); + flam3_improve_colors(cp, 100, 0, 10, 1.0, pc, rc); } else if (s < 0.8) { /* randomize xform color coords and palette */ - flam3_improve_colors(cp, 25, 1, 10, pc, rc); + flam3_improve_colors(cp, 25, 1, 10, 1.0, pc, rc); } else { /* randomize palette only */ const palette * const p = palette_random (pc, rc); -- cgit v1.2.3