This forum is now read-only. Please use our new forums! Go to forums

0 points
Submitted by Adrian
almost 9 years

How to do all colors?

(e.g) var aqua = [?, ?, ?] pls add all 17 definited HTML colors (black, silver, gray, white, maroon, red, purple, fuchsia, green, lime, olive, yellow, navy, blue, teal, orange and agua).

Answer 558a4be19113cbd888000207

2 votes

Permalink

Try [HSLPicker.com][1] [1]: http://hslpicker.com/

You will see four sliders there. Just adjust them as per the colour you need and check those three varying values given at the bottom of all four sliders. The third one will give the HSL value (the one we need). Omit the fourth value since we don’t really need it (only Hue, Saturation and Light is all we need). Take the first three values (remove the % sign) and create a variable yourself.

Like for black, adjust the sliders such that they start to show black color. Here we will see third bottom block will show hsla(360, 100%, 0%, 1). As I said omit the fourth value and %, now they will be hsla(360, 100, 0).

Now use three values to create black color.

var black = [360, 100, 0];

Congratulations! You just created your own color!

points
Submitted by Saharsh
almost 9 years

2 comments

Judy almost 9 years

Nice explanation Saharsh.

Saharsh almost 9 years

Thanks @AlbionsRefuge :)

Answer 55844d87e39efec97d00011a

0 votes

Permalink

Hi Adrian,

You are the programmer now, so you get to set whatever color variables that you want.

To find out how, here is the FAQ list for this project. Scroll down to “Can I make more colors?” in the Customization section.

points
Submitted by Judy
almost 9 years