lissajous pattern method