I want to write a simple program in JS that creates sparks around the cursor as I move it, what kind of math and physics do I need to learn in order to do this? I'm looking for some resources, mainly books, about math and physics that help me develop this kind of programs in Javascript. I'm an experienced web developer but I mostly do enterprise applications and I haven't had the need to apply this kind of effects, however, I am interested in learning, so please suggest.