I have the following code:
im = Image.new("RGBA", (800,600))
draw = ImageDraw.Draw(im,"RGBA")
draw.polygon([(10,10),(200,10),(200,200),(10,200)],(20,30,50,125))
draw.polygon([(60,60),(250,60),(250,250),(60,250)],(255,30,50,0))
del draw
im.show()
but the polygons do not exhibit any variance in alpha/transparency between. Is it possible to do this using these polygons or does the alpha level only apply to composited images (I'm aware of this solution but only see comments based on PIL and thought that I had seen this fixed in Pillow).
If such a thing is not available is there an nice, easy, efficient way of putting something like this in the library?