Hi,
how about using list comprehension?
# all masks in a list
masks = [mask1, mask2, mask3, mask4, mask5, mask6, mask7]
while True:
[m.size = ((unmaskLength - current_time)*(avg_shade_width/unmaskLength)*2,2) for m in masks]
image.draw()
[m.draw() for m in masks]
win.flip()
for-loop would do the job too, but I personally prefer list comprehension.
Hope that helps!
Yuhan