Skip to content

Instantly share code, notes, and snippets.

@zwang008
Created May 27, 2014 08:38
Show Gist options
  • Select an option

  • Save zwang008/5a01de1b820f97980b95 to your computer and use it in GitHub Desktop.

Select an option

Save zwang008/5a01de1b820f97980b95 to your computer and use it in GitHub Desktop.
javascript: bounceBubbles effect
//updated 1st time
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 = "Pure Consulting";
letterColors = [red,orange,green,blue,purple];
if(10 > 3) {
bubbleShape = "circle";
}
else {
bubbleShape = "square";
}
drawName(myName, letterColors);
bounceBubbles();
@Rasmusgr97
Copy link

What does the numbers 10 > 3 talk about? Is it the amout of letters in myName?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment