## Instructions

The Gumowski-Mira Attractor is defined by these two equations:

x_n+1 = y + a*(1 - b*y*y)*y + GM(x, c)

y_n+1 = -x + GM(x1, c)

where

GM(x, c) = c * x + 2 * (1 - c) * x * x / (1.0 + x*x)

Change the values of the parameters a, b, c, and d by using the sliders.

Key 'r': Redraw with a random set of parameters.

LEFT_ARROW: Draw with few points (faster).

RIGHT_ARROW: Draw with many more points (slower).

Key 'e': Save a high-resolution PNG of the current image.

Key 'a': Increment the number of lines.

Key 's': Decrement the number of lines.

## The p5js code

This p5js code is scrollable.