What’s related to what? The moon and the ocean are related. The moon affects the movement and appearance of the waves.

How are they related? The size and brightness of the moon control the height and color of the waves. When the moon gets bigger, the waves become stronger.

Is it a positive or negative relationship? It is a positive relationship because when one element increases, the other element also increases.

Is it an amplifying or diminishing relationship? It is an amplifying relationship because a small change in the moon creates a larger visual change in the ocean.

What variables did you use to create relationships? I used moonSize, waveHeight, waveColor, and frameCount. The mouse position controls the moon size, and the moon size changes the waves. The waves also move over time using frameCount.

https://editor.p5js.org/Zihuanyang/sketches/gN76uz16S