diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-04-06 15:36:54 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-04-06 15:36:54 +0200 |
commit | 2a7174bc25e5dab007db2fc7dc76c97fd2636069 (patch) | |
tree | 3c68005a853ff8aa596b68c923b35b8a1cd15119 /examples | |
parent | document tension (diff) | |
download | blueshift-2a7174bc25e5dab007db2fc7dc76c97fd2636069.tar.gz blueshift-2a7174bc25e5dab007db2fc7dc76c97fd2636069.tar.bz2 blueshift-2a7174bc25e5dab007db2fc7dc76c97fd2636069.tar.xz |
demo tension parameter
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/comprehensive | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/comprehensive b/examples/comprehensive index b8c7178..1fcf299 100644 --- a/examples/comprehensive +++ b/examples/comprehensive @@ -322,6 +322,8 @@ for i in range(len(current_calibration)): f = interpolate_function(f, linearly_interpolate_ramp) # Use cubic interpolation #f = interpolate_function(f, cubicly_interpolate_ramp) + # Use semitense cubic interpolation + #f = interpolate_function(f, lambda *c : cubicly_interpolate_ramp(*c, tension = 0.5)) # Otherwise use nearest-neighbour current_calibration[i] = f @@ -512,6 +514,8 @@ def periodically(year, month, day, hour, minute, second, weekday, fade): f = interpolate_function(f, linearly_interpolate_ramp) # Use cubic interpolation #f = interpolate_function(f, cubicly_interpolate_ramp) + # Use semitense cubic interpolation + #f = interpolate_function(f, lambda *c : cubicly_interpolate_ramp(*c, tension = 0.5)) # Otherwise use nearest-neighbour icc_calibration_profile[i] = f |