Created
May 27, 2014 08:38
-
-
Save zwang008/5a01de1b820f97980b95 to your computer and use it in GitHub Desktop.
javascript: bounceBubbles effect
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //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(); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What does the numbers 10 > 3 talk about? Is it the amout of letters in myName?