Generated sine and triangular waves, and created the display window.