Clipping lines against a rectangle using Cohen-Sutherland algorithm.
50 random lines are generated and clipped against the 25% gray rectangle.
Clipped portions are drawn in red.