new parameter, hsv_rgb_palette_blend, which applies to hsv_circular palette interpolation only. 0 -> hsv, 1 -> rgb.

This commit is contained in:
EReckase
2015-04-27 20:48:50 -06:00
parent 7f69d64ebf
commit cbc41cd4aa
5 changed files with 72 additions and 66 deletions
+3 -1
View File
@@ -39,6 +39,7 @@ void test_cp(flam3_genome *cp) {
cp->time = 0.0;
cp->interpolation = flam3_interpolation_linear;
cp->palette_interpolation = flam3_palette_interpolation_hsv;
cp->hsv_rgb_palette_blend = 0.0;
cp->background[0] = 0.0;
cp->background[1] = 0.0;
cp->background[2] = 0.0;
@@ -248,7 +249,8 @@ void spin(int frame, double blend, flam3_genome *parent, flam3_genome *templ)
/* Set genome parameters accordingly */
result->time = (double)frame;
result->interpolation = flam3_interpolation_linear;
result->palette_interpolation = flam3_palette_interpolation_hsv;
result->palette_interpolation = flam3_palette_interpolation_hsv_circular;
result->hsv_rgb_palette_blend = 0.0;
/* Force linear interpolation - unsure if this is still necessary */
/* I believe we put this in so that older clients could render frames */