Multiple colors Bounce Bubbles

hello everyone, I’m new to coding. how can I add different colours to bounce bubbles

red = [0, 100, 63];
orange = [40, 100, 60];
green = [75, 100, 40];
blue = [156, 77, 55];
purple = [320, 50, 60];

// Letters in the message will cycle through these colors:
letterColors = [red, orange, green, blue, purple];

message = 'Multiple colors!';

drawName(message, letterColors);
bounceBubbles();

what should I do here. I’m confess

Hey @web3337448869, I formatted your code. Go ahead and check out this post as a reference on how to do this.

Check this line of code:

Try changing the colors in this array and adding a new variable at the top with the RGB value of the color. For example, the RGB of purple is rgb("320,50,60") so you would change it to purple = [320, 50, 60]; And then add that new variable to the letterColors array.

ok thanks so much. I have gotten it right

1 Like