What is "transparent"? (OS X is teh sux?!)

Okay, this is sort of a Python question, but mostly just random, and largely just regarding different operating systems.

On XP, ‘transparent’ shows up in RGBA as (255, 255, 255, 0). On OS X, transparent is (127, 127, 127, 0). Okay, I think they’re both dumb, and that it should ultimately be represented as (0, 0, 0, 0) - but at least on XP you can invert to coerce the pixels to an ‘actual 0’ sort of state.

On OS X it’s a little harder. Lame. Bah. :expressionless:

edit:

While I’m at it, is there an easier way to turn all gray pixels black?


for i in range(0, width):
		for z in range (0, height):
			p = img.getpixel((i, z))
			if p == (127, 127, 127):
				img.putpixel((i, z), (0, 0, 0))