 # Lissajous figures. JavaScript

In another topic we saw how we can obtain a Lissajous figure with the Charts component.

In that topic we saw a link to a web page with JavaScript to get Lissajous figures online.

http://kio4.com/appinventor/lissajous.htm

Now let's adapt that JavaScript code to App Inventor.

But first we are going to repeat what Lissajous figures are about.

• Lissajous figures are used in electronics, in the study of the oscilloscope.
A sinusoidal signal is introduced through channel X and another sinusoidal signal of different frequency through channel Y, the union of these two signals produces the Lissajous figures.
• Depending on the frequency ratio a figure will be obtained.

2.- Use of Lissajous figures.

- Resolution.

• We draw a horizontal line that cuts the figure, we observe that it cuts it in 6 points.

• We draw a vertical line that cuts the figure, we observe that it cuts it in 4 points.

• That is, the ratio is 6 / 4

• For which the yellow signal will have a frequency of:

25,000 * (6 / 4) = 37,500Hz

1 Like