Sin Wave
Drawn in a window
Notes: This is an example of drawing in a window. It uses the LineTo() function to draw a horizontal axis across the center of the window and the Polyline() function to draw a sin wave for -2 pi to + 2 pi. The size of the wave is determined by the size of the window to ensure it always takes up the whole space