Forum help: https://scratch.mit.edu/discuss/topic/391257/ Demonstration of line-clipping algorithm. Drag blue or green circles around. This method can be used to draw the on-screen part of a line between two off-screen co-ordinates.