(rgb(255, 0, 0)) - Why This Is In The Question? - Codecademy
I would like to know why “(rgb(255, 0, 0))!” is included in the question? What does it mean?
I got the correct result without using it but i still want to know what “(rgb(255, 0, 0))” mean on this question?
Answer 50c5c658ac224270570016b8
3 votesPermalink
He uses RGBA, that’s a kind of type to write color. You can control the quantity of colors, and the Alpha of the colors.
See: rgba(a, b, c, d);
The a, b and c are channels of RGB colors - Red, Green and Blue. The d - and last element - is the Alpha channels, here you can put a number between 0 and 1 to describe the transparency and opacity of the colors.
Example: rgba(255, 255, 255, 0.5); Here we have 255 of red, 255 of green and 255 of blue, this color is white. Alpha of 0.5, it’s half of opacity.
Can you get it now?!
Sorry about my english.
1 comments
Actually he uses rgb(255, 0, 0); only. I told you another thing.
RGB is only Red, Green and Blue. RGBA is Red, Green, Blue AND Alpha. Sorry about my confusion.
Answer 50632ace8b5cbf00020c6eb8
2 votesPermalink
That is if you can’t see the text shadowing.
1 comments
Yes, it turns the shadow red, so it’s easier to see!
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.- Checker DenseBeginner Friendly.4 Lessons
- Free course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.- Checker DenseBeginner Friendly.11 Lessons
- Free course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.- Checker DenseBeginner Friendly.6 Lessons
Tag » Color.rgba(255 0 0 0)
-
CSS Colors - W3Schools
-
CSS RGB And RGBA Colors - W3Schools
-
Color To Hex And Rgba Converter - Popular Blocks
-
RBGA Decimal Color Codes - December Communications, Inc.
-
RGB Color (255, 0, 0)
-
CSS3/Color/RGBA - W3C Wiki
-
What Color Is: Rgba(255,0,0,0.5) Code Example - Grepper
-
Explanation Of CSS RGBA Colors | Guide - WebFX
-
Red - Converting Colors
-
Colors - Should You Use Rgba(0, 0, 0, 0) Or Rgba(255, 255, 255, 0) For ...
-
Values And Units | CSS Guide - IFPB
-
RGB To Color Name Mapping(Triplet And Hex)
-
HTML Color Picker
-
Images: Color Codes - LibGuides At Texas Wesleyan University