From 4fdb61a6839e277cefde7c8332a8762e4989e72c Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Fri, 10 Jul 2015 21:36:45 +0200 Subject: Randomize color, color_speed and ppu --- genome.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'genome.c') diff --git a/genome.c b/genome.c index 1d8a524..f4ccc8e 100644 --- a/genome.c +++ b/genome.c @@ -264,7 +264,9 @@ void xform_rand (flam3_xform * const xform, const bool add_post, assert (rc != NULL); /* XXX: the original code alternates between 0/1 for every xform */ - xform->color = rand_bool (rc) ? 1.0 : 0.0; + xform->color = rand_d01 (rc); + /* … and uses a constant color_speed of 0.5 */ + xform->color_speed = rand_d01 (rc); for (unsigned int j = 0; j < 3; j++) { for (unsigned int k = 0; k < 2; k++) { -- cgit v1.2.3