title: How to implement my own graphics clipping?
body: <p>I have a task for my Computer Graphics classes. I have to create an application with the following features:</p>
  
  <ol>
  <li>There is a dolphin floating on the screen, the user can move it around,</li>
  <li>The dolphin is filled with some pattern;</li>
  <li>At the bottom, there are water waves, filled with some color, they move right and left;</li>
  <li>When the dolphin gets under the waves, the intersection of the dolphin and waves should be filled with some different color.</li>
  </ol>
  
  <p>The task is about clipping. I should have my own functions: <code>myFill</code>, which takes as arguments <code>Color</code> and <code>Polygon</code>, and <code>myClip</code>, which takes two <code>Polygon</code>s and returns their intersection. In <code>myFill</code> I should use scanlines this function has complexity O(1).</p>
  
  <p>The main problem for me is - where to start? Should I use Windows Forms or WPF for this task? If I use WPF, Canvas (InkCanvas?) with some polygons how do I fill them then line by line? What classes will be helpful?</p>