Thanks for the fix!
$ bzr diff === modified file 'phatch/actions/reflection.py' --- phatch/actions/reflection.py 2009-06-08 12:17:51 +0000 +++ phatch/actions/reflection.py 2009-06-09 22:52:15 +0000 @@ -58,8 +58,8 @@ resample_shadow,gap=0,scale=False,cache=None): if cache is None: cache = {} - opacity = int(2.55*opacity) - background_opacity = int(2.55*background_opacity) + opacity = (255 * opacity) / 100 + background_opacity = (255 * background_opacity) / 100 resample_shadow = getattr(Image,resample_shadow) if background_opacity == 255: mode = 'RGB'
$ bzr commit -m "fix reflection" Committing to: /home/stani/sync/python/phatch/trunk/ modified phatch/actions/reflection.py Committed revision 715.
Thanks for the fix!
$ bzr diff actions/ reflection. py' actions/ reflection. py 2009-06-08 12:17:51 +0000 actions/ reflection. py 2009-06-09 22:52:15 +0000
resample_ shadow, gap=0,scale= False,cache= None): background_ opacity) shadow = getattr( Image,resample_ shadow)
=== modified file 'phatch/
--- phatch/
+++ phatch/
@@ -58,8 +58,8 @@
if cache is None:
cache = {}
- opacity = int(2.55*opacity)
- background_opacity = int(2.55*
+ opacity = (255 * opacity) / 100
+ background_opacity = (255 * background_opacity) / 100
resample_
if background_opacity == 255:
mode = 'RGB'
$ bzr commit -m "fix reflection" sync/python/ phatch/ trunk/ actions/ reflection. py
Committing to: /home/stani/
modified phatch/
Committed revision 715.