Yes, I did it graphically - took each point, moved it 3 units right or, if it hit 5, the number of units left that remained. When I had done all points, I added the waves (or subtracted, as the case may be.) I only focused on the left side, as the right would be a mirror image.
The video...