There's not really a way to change a sprite's color in that way. You could try the Canvas plugin, which does include a gradient fill.
There's also the SVG Canvas plugin, which lets you use any SVG code, which can include gradients.
Either of those plugins will allow you to make changes to the gradient at runtime.