Thanks for your reply, I tried to modify the above example
I set the right color to transparent , and set a background image of canvas.
the whole canvas will change to left color.
Besides, if there is no mouse movement, the middle line will become a straight line instead of animated wave