This forum is now read-only. Please use our new forums at discuss.codecademy.com.

Animate Your Name Forum

View Course

654 points
0f0cc57146d24f975950c5bc0828a1a1?s=140&d=retro
Submitted by
HamzaSalemaCoding
almost 3 years ago

What are these numbers???

I did the animate your name course and i did undertand everything except these numbers. what are they and can they be changed,?

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];


0 votes

permalink

You can read all about how to make colours over here http://www.codecademy.com/forum_questions/53385d4e8c1ccca3de00a9a6

3692 points
55df2afa95e3787b9200005e_359368177
Submitted by
Judy
almost 3 years ago


0 votes

permalink

Hey :) Those numbers are what make up the color you are trying to use. For example, try writing this piece of code and when you command drawName to use it along with your name, it will give you a name in yellow:

var yellow = [60, 100, 10]

So after creating that, if you write
drawName(myName, yellow),
your name in the little screen will appear in yellow :)

117 points
5c6cead24e24104592730c51b226be50?s=140&d=retro
Submitted by
Karen
about 2 years ago