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
Patrick Min, CS Department, Princeton University
Last modified: Mon Jan 18 15:31:42 EST 1999