Drag the points around the screen to change the polygon. As you move a point, the polygon will redraw and be refilled.
I used MathWizz's polygon filler but broke it up into separate blocks for each main part of the code. It uses an algorithm I found elsewhere which divides each scanline into sections: either inside the shape or outside the shape, then draws only those sections that are inside the shape.