Color Codes Codehs Answers — Exploring Rgb

Divide canvas height by 6. If y is in band 1, use Red; band 2, Orange, etc.

Answer Key: For the French flag, the order is . For Italy, Green, White, Red . exploring rgb color codes codehs answers

function drawStripe(x, y, width, height) if (x < 100) return rgb(0, 0, 255); // Blue else if (x < 200) return rgb(255, 255, 255); // White else return rgb(255, 0, 0); // Red Divide canvas height by 6

? Let me know the unit name or the problem title , and I can help you figure out the specific logic needed to solve it! the order is . For Italy

rgba(0, 255, 0, 0.5) (50% transparent green).