Background change based on music

Hey,
I’ve been desperately searching for a solution. Is there any possibility that the background color changes from white to red, regarding the amplitude as how the circle does from black in this example?

Thank you!

Hello,

Yes!

I was able to do this with:

colorMode(HSB, 100);

And I varied the saturation (sat is between 0 and 100) with:
color(60, sat, 100); //This is blue

References:

Background changes with amplitude:

:)

Perfect—worked out :slight_smile:
Merci!

Hello,

This is also available:
https://p5js.org/reference/#/p5/lerpColor

There is often more than one way to achieve an outcome.

Another reference (also added to my last post) for this topic:
https://p5js.org/learn/color.html

:)