Added prototype.translate to GradientEvent