title: How do you change an objects transparency when it is moved in corona sdk?
body: <p>I am trying to create a drag-able square, which changes its transparency the closer it goes to the center of the screen (from being invisible in the sides to being completely visible in the center, like in the pictures below) </p>
  
  <p><a href="https://i.stack.imgur.com/BcYHe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BcYHe.png" alt="enter image description here"></a> </p>
  
  <p><a href="https://i.stack.imgur.com/4aUlc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4aUlc.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/cJTy7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cJTy7.png" alt="enter image description here"></a></p>