with a gradient moving as the ball is dragged ? I’ve already done it with the gradient fixed to the image sprite. but the problem is that a image sprite coordinate cannot go into negatives.
here’s the result :
I wish there was a function to modify the width of an image sprite with x as a variable.
Create an image of the right dimensions (to match the slider size) with a gradient in it.
Place this to the left of your ball, with a z index 1 lower so then right end of the image is below the centre of the ball.
With the drag event change the width of the imagesprite with the gradient to match the ball position.