Working on polygon clipping for Canvas implementation.