diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-09-11 14:38:47 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-09-11 14:38:47 +0900 |
| commit | 884c8093d63402a1ad0b502244b791e3c6782be3 (patch) | |
| tree | a600d4ab0d431a2bdfe4c15b70df43c14fbd8dd0 /debian/lcms/lcms-1.19.dfsg2/python/testbed/clamp.py | |
| parent | 14e1aa2006796f147f3f4811fb908a6b01e79253 (diff) | |
| download | extra-dependencies-884c8093d63402a1ad0b502244b791e3c6782be3.tar.gz extra-dependencies-884c8093d63402a1ad0b502244b791e3c6782be3.zip | |
Added debian extra dependency packages.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'debian/lcms/lcms-1.19.dfsg2/python/testbed/clamp.py')
| -rwxr-xr-x | debian/lcms/lcms-1.19.dfsg2/python/testbed/clamp.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/debian/lcms/lcms-1.19.dfsg2/python/testbed/clamp.py b/debian/lcms/lcms-1.19.dfsg2/python/testbed/clamp.py new file mode 100755 index 00000000..2115b097 --- /dev/null +++ b/debian/lcms/lcms-1.19.dfsg2/python/testbed/clamp.py @@ -0,0 +1,23 @@ + +# +# Sample: Gamut clamping +# + +from lcms import * + + + +Lab = cmsCIELab(80, -200, 50) +print "Original", Lab + +# +# Desaturates color to bring it into gamut. +# The gamut boundaries are specified as: +# -120 <= a <= 120 +# -130 <= b <= 130 + +cmsClampLab(Lab, 120, -120, 130, -130) + +print "Constrained", Lab + + |
