This forum is now read-only. Please use our new forums! Go to forums
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
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!
Answer 55844d87e39efec97d00011a
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.
Popular free courses
- Free Course
Learn SQL
In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Beginner friendly,4 LessonsLanguage Fluency - Free Course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner friendly,11 LessonsLanguage Fluency - Free Course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner friendly,6 LessonsLanguage Fluency
2 comments
Nice explanation Saharsh.
Thanks @AlbionsRefuge :)