I am attaching a very basic way of doing it. What I did was create a single complete sine wave and cosine wave. I then created the 2d array of zeros. I then replaced the zeros with something that would draw (100) at all of the places defined by the sine and cosine waves. It sounds more complicated than it is. Take a look.