Quotes help make search much faster. Example: "Practice Makes Perfect"

Tuesday, January 7, 2014

Codecademy - Animate Your Name: Bounce the bubbles


//Sample solution to main.js

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 = "Ryan";
var letterColors = [red, orange, green];

if(myName.length < 4){
    //try changing myName to less than 4 letters
    bubbleShape = "square";
} else {
    bubbleShape = "circle";
}

drawName(myName, letterColors);
bounceBubbles();


Back to the list of sample solutions for Animate Your Name

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts