Cohen-Sutherland Clipping applet

Use the left mouse button to set the endpoints of a line, or click "Random Line". Then press "Clip" to start the clipping algorithm.

In a regioncode, the bits mean the following:


Your browser does not support Java applets.
Download