Set Y speed to a ratio of that of X. My favorite ratio is 150 to 125, 6/5. Ratios 2 or 3 or 1.5 are interesting too. Simulates a dripping paint pendulum I made that swung faster in the perpendicular direction. Dot is like the paint drip. Spacebar changes costume.
Very simple code yielding paint pendulum patterns, dampening over time (radius shrinks), except here radius expands again & pen changes colors. X is cosine, Y is sine. Pen draws X Y intersection. Circle if X = Y speed. Lissajous if Y is >1 times X. Y speed as a whole number ratio of X yields great patterns. Try ratio 3/2 (1.5), or 2 or 3, or 6/5 and so on.