How to underline myName?


#1

How to underline myName ?


var red = [0, 100, 63];
var orange = [40, 100, 60];
var green = [75, 100, 40];
var blue = [196, 77, 55];
var purple = [280, 50, 60];

var myName = "Mohamad"
letterColors = [red, orange, green, blue, purple];

if (15 > 5) {
bubbleShape = "circle";
} else {
bubbleShape = "square";
}

bounceBubbles();

drawName(myName, letterColors);


#2

Have you tried styling the text in the CSS sheet, if there is.

Like:

element {
     text-decoration: underline;
}

#3

You are using a canvas to display your name, you should learn how to draw in a canvas. There are plenty of tutorials on it like this one