Harmonograph

Settings

Frequencies:
Phases:
Amplitudes:
Fade out old points?

About this Harmonograph

(source code)

After talking with John Baez and looking at some pictures of harmonographs (1, 2), it seems to me the two pendula attached to the pen can be approximated as two (probably orthogonal) vectors $v_1$ and $v_2$ that combine additively. The third pendulum adds an offset to the paper, so its effect is also additive.

So the position of the pen (relative to the paper) at time $t$ is:

$$v_1 + v_2 + v_3$$

where

$$v_i = A_i\sin(f_it + \Phi_i)$$

where: