Use the mouse! If you wish to use this in your project: - Lines are defined by point, direction, and magnitude - The system currently cannot support very many lines. For every frame, with n lines, it needs to check for more than n^2 intersections. This demo has only 25 lines, and it is already laggy. - It will act strangely if the ends of two lines meet. The end of one line should meet the beginning of another. - The rotating line in this demo is two lines, with overlapping ends. - The first four lines are the border of the stage. These should not be removed.
Based on http://ncase.github.io/sight-and-light/ Uses http://scratch.mit.edu/projects/10119728/ The "light" turned blue. That's odd. :/