title: Producing sine wave visual gratings on Android
body: <p>For a project that I'm developing for use on Android tablets, I have to create moving visual sine-wave gratings. Here is an example of such:</p>
  <p><img src="https://i.stack.imgur.com/AdpHA.png" alt="Sine wave gratings" /></p>
  <p>(These are stationary analogues of course.)</p>
  <p>I need to be able to modify parameters such as speed, orientation, contrast and spatial frequency. Being able to use different types of gratings as opposed to just linear ones would be a plus (eg. a circular ripple effect).</p>
  <p>Could someone offer a suggestion of how I would implement this in Android? Thanks.</p>