Press and drag the mouse, draw a glowing line with canvas, save the track, and then play the track.
implementation idea:
1 press the mouse to draw a line, record the track with an array, and then play the track
2 to shadow the line
question:
drawing lines, recording tracks have been realized, mainly drawing luminous lines this is a bit difficult to achieve.
the effect of the line drawn with the method in the train of thought looks stiff, without the feeling of streamer or glowing.
want to draw a glowing line, how can this be realized?
similar to Apple"s effect, but feel free to draw
][3]