Ajax-loader-large-white
Animate Your Name
Change the bubble shape

Colorful! What did we just do?
We gave the function drawName() two inputs. One was your name. The other was an array of colors. The output was a multi-colored picture of your name.

Now let's change the shape of the bubbles from circles to squares. There's a variable called bubbleShape that lets you control the shape of the bubbles.

  • When bubbleShape = "square", the bubbles are shaped as squares
  • When bubbleShape = "circle", the bubbles are shaped as circles
Instructions

Change the shape of the bubbles from circles to squares. In line 9, add bubbleShape = "square";. The bubbles will change to squares.

main.js
index.html
project
View Preview