Variables

x x position of current pixel
y y position of current pixel
t the current frame number
xm the current mouse x position
ym the current mouse y position

 

Constants

X The X extent of the image
Y The Y extent of the image