A sketch featuring an image distorted by a sine wave in real time viewable in 2d or 3d, both using P2D.
Move the mouse along the x axis to increase and decrease the frequency of the sine wave.
Click anywhere to switch from 2d mode to 3d mode and vice versa.
Edit: Uploaded 2 years ago and no one tells me I used "sign" instead of "sine". Please excuse me while I hide in my corner of shame.