Nah you can't really assign a var to a rectangle in the way you would 3d entities. For ease you could use a dithered image of a rectange making every second pixel black.
1010
0101
1010
Not really the same as alpha though but would appear to be see-through.
1010
0101
1010
Not really the same as alpha though but would appear to be see-through.