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:
- bit 3: above
- bit 2: below
- bit 1: right
- bit 0: left
Click here for a list of all applets.
Patrick Min, CS Department, Princeton University
Last modified: Mon Jan 18 14:50:40 EST 1999