summaryrefslogtreecommitdiff
blob: 64d6527768f8855b73e98e66df46a253e027719c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Index: monsterz-0.7.1/monsterz.py
===================================================================
--- monsterz-0.7.1.orig/monsterz.py	2008-05-09 16:35:25.000000000 +0000
+++ monsterz-0.7.1/monsterz.py	2008-05-09 16:35:33.000000000 +0000
@@ -108,7 +108,9 @@
                 M = int(max(r, g, b))
                 m = int(min(r, g, b))
                 val = (2 * M + r + g + b) / 5
-                p[:] = (val + r) / 2, (val + g) / 2, (val + b) / 2
+                p[0] = (val + r) / 2
+                p[1] = (val + g) / 2
+                p[2] = (val + b) / 2
                 if alpha[y][x] >= 250:
                     alpha[y][x] = 255 - (M - m) * 3 / 4
         del pixels
@@ -129,7 +131,9 @@
                 r, g, b = p
                 M = int(max(r, g, b))
                 m = int(min(r, g, b))
-                p[:] = (m + r) / 2, (m + g) / 2, (m + b) / 2
+                p[0] = (m + r) / 2
+                p[1] = (m + g) / 2
+                p[2] = (m + b) / 2
                 if alpha[y][x] >= 250:
                     alpha[y][x] = 255 - M * 2 / 3
         del pixels