summaryrefslogtreecommitdiff
path: root/interpolation.c
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2015-02-13 16:18:10 +0100
committerLars-Dominik Braun <lars@6xq.net>2015-05-02 21:36:45 +0200
commitb9d887fc3cd3ae26c678bf35bc90c4f1d6b03888 (patch)
treeccbe25664282dd7915c55e73e25772b8801e9088 /interpolation.c
parenta46f55e0a2c9362b7b549ead851043c7b9e2791d (diff)
downloadpucket-b9d887fc3cd3ae26c678bf35bc90c4f1d6b03888.tar.gz
pucket-b9d887fc3cd3ae26c678bf35bc90c4f1d6b03888.tar.bz2
pucket-b9d887fc3cd3ae26c678bf35bc90c4f1d6b03888.zip
Unify prng use
Finally drop all isaac references, do not use system rng any more. Drop rng state from flam3_frame – it was not used anyway.
Diffstat (limited to 'interpolation.c')
-rw-r--r--interpolation.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/interpolation.c b/interpolation.c
index 4bef70f..09c3a7a 100644
--- a/interpolation.c
+++ b/interpolation.c
@@ -142,15 +142,16 @@ int compare_xforms(const void *av, const void *bv) {
}
void interpolate_cmap(flam3_palette cmap, double blend,
- int index0, double hue0, int index1, double hue1) {
+ int index0, double hue0, int index1, double hue1,
+ randctx * const rc) {
flam3_palette p0,p1;
int i, j, rcode;
- rcode = flam3_get_palette(index0, p0, hue0);
+ rcode = flam3_get_palette(index0, p0, hue0, rc);
if (rcode<0)
fprintf(stderr,"unable to retrieve palette %d, setting to white\n", index0);
- rcode = flam3_get_palette(index1, p1, hue1);
+ rcode = flam3_get_palette(index1, p1, hue1, rc);
if (rcode<0)
fprintf(stderr,"unable to retrieve palette %d, setting to white\n", index1);