Im stuck for three hours on Arrays


#1

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 = "#ZAIAHBOII";
var letterColors = [red, orange, green, blue, purple]

var drawName(myName, letterColors);


#2

@netace58296,

For a understanding of the usage of the RGB notation
google search
== the Book ==
rgb to hex site:developer.mozilla.org
for instance...
https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Getting_started/Color

You can also specify a color using decimal RGB values in the range 0 – 255


#3

Hi Isaiah,

You need to remove the var on lines 8 and 10. letterColors and drawName() are predefined, outside of your JS file, so re-defining them as something else causes problems :)


#4

You should take Leon's advice but instead search for HSL notation.

And you might find this interesting to play around with:

Can I make more colors?


#5

thanks sooo sooo much i need that