PPT Slide
public void paint(Graphics g) {
/* THIS MAN USES THE SINE FUNCTION */
g.fillOval(xpos+23,ypos+5,45,45);
g.fillRect(xpos+23,ypos+50,45,45);
g.setColor(Color.yellow);
g.fillRect(xpos+2,ypos+50,21,21);
g.fillRect(xpos+68,ypos+50,21,21);
/* THIS MAN USES THE COSINE FUNCTION */
g.setColor(Color.magenta);
g.fillOval(xpos+23,ypos2+5,45,45);
g.fillRect(xpos+23,ypos2+50,45,45);
g.fillRect(xpos+2,ypos2+50,21,21);
g.fillRect(xpos+68,ypos2+50,21,21);