This is just an experiment with sine. Move your mouse around, and maybe look inside, the math is not complicated at all.