Many CodeHS exercises ask you to convert between RGB and HEX. Just Google: "rgb(255, 99, 71) to hex" → Result: #FF6347 (Tomato color).
stands for Red, Green, Blue . It is an additive color model : when you combine these three colors of light at full intensity, you get white. When all are at zero intensity, you get black (or no light).
to create over 16 million colors. In computer science platforms like
For exercises like "Exploring RGB" (4.7.4) or "Making Yellow" (4.7.5), you often need specific hex or RGB combinations: : #FF0000 or rgb(255, 0, 0) Green : #00FF00 or rgb(0, 255, 0) Blue : #0000FF or rgb(0, 0, 255) Yellow : #FFFF00 or rgb(255, 255, 0) White : #FFFFFF or rgb(255, 255, 255) Black : #000000 or rgb(0, 0, 0) 2. Implement the Solution logic
: Create a loop to draw at least 10 vertical strips .
If you’re working through the CodeHS web design or computer science curriculum, you’ve likely hit a wall with the exercise. This specific challenge asks you to replicate the iconic, fiery shades of Google’s branding using RGB (Red, Green, Blue) color codes.