NOC – Week 6: Playing with sin, Sherry

This week I worked on┬áthe in-class example sine wave code. Instead of showing in a horizontal line, I tried to draw closed shape using sine. I modified the drawWave function a little bit. Because what I draw is more like a circle rather than a line, I remove yOffset parameter and add a parameter for angle. In order to connect the dots I don’t draw ellipses and instead use vertex and beginShape() and endShape();

Leave a Reply