--- a/Image.st Sat Apr 02 21:30:20 2016 +0200
+++ b/Image.st Sun Apr 03 00:46:39 2016 +0200
@@ -13390,9 +13390,9 @@
numRedBits := bitsPerSample at:1.
numGreenBits := bitsPerSample at:2.
numBlueBits := bitsPerSample at:3.
- r := (r = 0) ifTrue:[0] ifFalse:[(100 / ((1 bitShift:numRedBits)-1) * r)].
- g := (g = 0) ifTrue:[0] ifFalse:[(100 / ((1 bitShift:numGreenBits)-1) * g)].
- b := (b = 0) ifTrue:[0] ifFalse:[(100 / ((1 bitShift:numBlueBits)-1) * b)].
+ (r == 0) ifFalse:[ r := (100 / ((1 bitShift:numRedBits)-1) * r)].
+ (g == 0) ifFalse:[ g := (100 / ((1 bitShift:numGreenBits)-1) * g)].
+ (b == 0) ifFalse:[ b := (100 / ((1 bitShift:numBlueBits)-1) * b)].
^ Color redPercent:r greenPercent:g bluePercent:b
].
@@ -13406,10 +13406,10 @@
numGreenBits := bitsPerSample at:2.
numBlueBits := bitsPerSample at:3.
numAlphaBits := bitsPerSample at:4.
- r := (r = 0) ifTrue:[0] ifFalse:[(100 / ((1 bitShift:numRedBits)-1) * r)].
- g := (g = 0) ifTrue:[0] ifFalse:[(100 / ((1 bitShift:numGreenBits)-1) * g)].
- b := (b = 0) ifTrue:[0] ifFalse:[(100 / ((1 bitShift:numBlueBits)-1) * b)].
- a := (a = 0) ifTrue:[0] ifFalse:[(100 / ((1 bitShift:numAlphaBits)-1) * a)].
+ (r == 0) ifFalse:[ r := (100 / ((1 bitShift:numRedBits)-1) * r)].
+ (g == 0) ifFalse:[ g := (100 / ((1 bitShift:numGreenBits)-1) * g)].
+ (b == 0) ifFalse:[ b := (100 / ((1 bitShift:numBlueBits)-1) * b)].
+ (a == 0) ifFalse:[ a := (100 / ((1 bitShift:numAlphaBits)-1) * a)].
^ Color redPercent:r greenPercent:g bluePercent:b alphaPercent:a
].