diff options
author | olpc <olpc@xo-10-A7-93.localdomain> | 2010-06-14 20:26:00 (GMT) |
---|---|---|
committer | olpc <olpc@xo-10-A7-93.localdomain> | 2010-06-14 20:26:00 (GMT) |
commit | a14a9d2c576aeeee8ce99e1ecbb42726d7d034d8 (patch) | |
tree | 8148f0290c1f8563cda21f6c3444ee6a405f3916 /devtools | |
parent | 8d17b2385b8c04e722d6f3d736a4fb2f5df558ac (diff) |
We edited the image test program so that mit includes rendered transparency.
Diffstat (limited to 'devtools')
-rw-r--r-- | devtools/ImageTypeTest/test.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/devtools/ImageTypeTest/test.py b/devtools/ImageTypeTest/test.py index a73e06a..3cbdac5 100644 --- a/devtools/ImageTypeTest/test.py +++ b/devtools/ImageTypeTest/test.py @@ -15,6 +15,7 @@ r=0 #frame refreshes i=1 #cycles images size = width, height = 600,400 #screen sizes t=0 #trial number n +colorkey=(255, 152, 0) ftArr=[ ["bmp","BMPs 16-Bits/"] , ["bmp","BMPs 24-Bits/"] , ["bmp","BMPs 32-Bits/"] , ["gif","GIFs/"] , ["gif","GIFs Transparent/"] , ["jpg","JPGs 1Low/"] , ["jpg","JPGs 2Medium/"] , ["jpg","JPGs 3High/"] , ["jpg","JPGs 4Max/"] , ["png","PNGs Indexed/"] , ["png","PNGs Transparent/"] ] @@ -31,8 +32,6 @@ def chngImg(): 2: pygame.image.load("%s3 Button.%s"%(ft[1],ft[0])), 3: pygame.image.load("%s4 Button.%s"%(ft[1],ft[0])), 4: pygame.image.load("%s5 Button.%s"%(ft[1],ft[0])), - 3: pygame.image.load("%s4 Button.%s"%(ft[1],ft[0])), - 3: pygame.image.load("%s4 Button.%s"%(ft[1],ft[0])), 5: pygame.image.load("%s6 Button.%s"%(ft[1],ft[0])), 6: pygame.image.load("%s7 Button.%s"%(ft[1],ft[0])), 7: pygame.image.load("%s8 Button.%s"%(ft[1],ft[0])), @@ -40,6 +39,7 @@ def chngImg(): 9: pygame.image.load("%s1 Button.%s"%(ft[1],ft[0])) } img[cnt,0]=switcher.get(i,pygame.image.load("%s1 Button.%s"%(ft[1],ft[0]))) + img[cnt,0].set_colorkey(colorkey, pygame.RLEACCEL) cnt=cnt-1 #----------------------------------------------------------------- #Collision detection |