summaryrefslogtreecommitdiff
path: root/flam3.c
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2015-05-24 17:32:48 +0200
committerLars-Dominik Braun <lars@6xq.net>2015-05-24 17:32:48 +0200
commit7500d3b40ebd24f32d8ae226aed65fabc28c7e8d (patch)
treee46a7ab42dd84ffb0d0574b05334f9d369f2c392 /flam3.c
parentd82c89132ad3a83c816edeb42049b88797ac1122 (diff)
downloadpucket-7500d3b40ebd24f32d8ae226aed65fabc28c7e8d.tar.gz
pucket-7500d3b40ebd24f32d8ae226aed65fabc28c7e8d.tar.bz2
pucket-7500d3b40ebd24f32d8ae226aed65fabc28c7e8d.zip
Add improvecolors command
Also fixes try_colors, which used an integer division *before* casting the result to double.
Diffstat (limited to 'flam3.c')
-rw-r--r--flam3.c4
1 files changed, 2 insertions, 2 deletions
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);