I am defining a grid of paths (my own design, not the one on the aforemnetioned page) on my page using Canvas lines and am trying to figure how to get the effect of light-pulse-through-optic-fiber effect to propagate signals on randomly selected paths in my grid.
Here is a sample of the canvas background I'm working on (unfinished) -
I am trying for the pulse to propagate from one black end point to the other along the form of the segment connecting them and converge / diverge at junctions.
Can anyone point me in the right direction? Any frameworks that can be of help?